Import the YesidFaceEnrollment module:
In your project's Swift file where you want to use the YesidFaceEnrollment library, add the following import statement:
import FaceEnrollmentFramework
Instantiate and present the FaceEnrollmentCameraUI view:
Configure the SDK by passing the license or any other configuration
let configuration: FaceEnrollmentConfigurationBuilder = FaceEnrollmentConfigurationBuilder().setUserLicense(userLicense: "YOUR_LICENSE")
Use the SDK by calling FaceEnrollmentCameraUI
@main
struct iOSApp: App {
var body: some Scene {
WindowGroup {
FaceEnrollmentCameraUI(configurationBuilder: configuration), onResults: {FaceEnrollmentResults in
print(FaceEnrollmentResults)
})
}
}
}