Migration from previous version¶
Only if you want to migrate from version below 1.5.0¶
Migration from previous versions to 1.5 is below change log
Change log¶
Version 1.5.0¶
Bug fixes
- Fixed: control photo is sometimes too dark on iOS
New features
- Distribute iOS IAD library as xcframework packages
- Experimental feature: Non-UI mode
Major changes
IDCameraController.frameworkframework name was changed toIDLiveFaceCamera.xcframeworkIDLiveFaceIAD.frameworkframework name was changed toIDLiveFaceIAD.xcframework- Demo app was modified and also path is a little bit different:
idlive-face-capture-ios-X.X.X/idrnd_frameworks_delivery/CameraExample_IAD/CameraExample - IDLiveFaceCamera framework in IDCameraControllerDelegate protocol:
- changed:
image: UIImage→capturedImage: IDImageallowToTakeManually: Bool→captureMode: PhotoCaptureModecurrentMode→currentViewModeignoresLifecycleEventsis renamed torunInBackground(used only for non-ui mode)
- added:
showFaceDetectionErrors: BoolstopAfterCapture: BoollastLiveImage: IDImage?canTakePhotoNow: Bool- animation to capture button
- changed:
- IDCameraControllerDelegate protocol was changed:
replaced:
func cameraControllerShouldShowFaceDetectionMessage(_ controller: IDCameraControllerBase, result: FaceDetectorResult) -> Bool
with:
func cameraControllerDidUpdateFaceResult(_ controller: IDCameraControllerBase, result: FaceDetectorResult, image: IDImage?, momentary: Bool)
added:
func cameraControllerDidUpdateViewMode(_ controller: IDCameraControllerBase)
// (used only for non-ui mode)
func cameraControllerDidUpdateLiveImage(_ controller: IDCameraControllerBase, image: IDImage)
- IDLiveFaceCamera → FaceDetectorResult:
- renamed
addCustomDetectingClosure→addCustomFaceDetectorClosure - renamed: error, ignorableError, fatalError → faceDetectionError, faceDetectionIgnorableError, faceDetectionFatalError
- renamed
var rawValue→var message var isErroris now exposed (public)- added one more FaceDetectorResult: customUserError
- renamed
Migration from previous versions to 1.5¶
- You have to change Xcode project settings.
- In General tab remove previous framework versions and add the new one instead
- You have to change all imports from IDCameraController to IDLiveFaceCamera if you use it
- IDCameraControllerDelegate was changed, so you need to update all instances which you are using. Please check changelog for more details
- FaceDetectorResult was expanded and changed
addCustomDetectingClosurewas changed to →addCustomFaceDetectorClosureso if you using it you also have to make some changes here