iOS SDK
Use the ShenaiSDK framework from Swift or Objective-C to present the scan in your app.
Install the SDK
Set your deployment target to iOS 15 or later, then install the SDK with Swift Package Manager or CocoaPods.
Swift Package Manager
In Xcode, open File > Add Package Dependencies… and add:
https://github.com/mxlaboratories/ShenaiSDK.gitSet the dependency rule to Up to Next Major Version starting at 3.2.0, then add the ShenaiSDK product to your app target.
For a package manifest, add the dependency explicitly:
.package(url: "https://github.com/mxlaboratories/ShenaiSDK.git", from: "3.2.0")CocoaPods
Add the pod to your app target:
target "YourApp" do
pod "ShenaiSDK"
endThen run:
pod installPresent the scan
Add NSCameraUsageDescription to your app’s Info.plist so iOS can ask for camera access. Initialize the SDK with your credential. Once initialization succeeds, present the ShenaiView view controller from the view controller that hosts the scan.
Example apps
See Configuration to choose scan settings and Preparation for guidance before a scan.
For custom frame input, see Use your own camera pipeline.