Skip to main content
This migration guide covers significant changes in the SDK API that might affect your integration.
No custom views? If you have not overridden any SDK views or protocols, you typically only need to update the pod/package version. No code changes required.

AI Migration Helper

Select the SDK version you use now and the version you are upgrading to, then copy the prompt. It contains every migration note between the two versions, with instructions for an AI coding assistant to apply them. Paste it into the assistant opened in your project, and review the changes it makes before you commit them.

[9.2.x] -> [9.3.1]

3D Liveness Updated: Debugger Crash and the New iDenfyLivenessDev Module

The 3D liveness version was updated. Because of increased security, the regular iDenfySDK/iDenfyLiveness module now crashes when 3D liveness starts while the Xcode debugger is attached. Release builds and builds run without the debugger are not affected. To debug an app that uses 3D liveness, switch to the new development-only module while you develop:
The module is also available as the iDenfyLivenessDev-spm Swift package. See Debugging 3D Liveness.

Document Recognition Removed

Document Recognition has been removed and replaced by document auto capture, which is built into the base SDK. Auto capture detects the document edges in real time and takes the photo once the document fits the frame and is held still. The iDenfySDK/iDenfyRecognition module is no longer available. If you use it, switch to one of the modules listed in the quickstart, with either CocoaPods or Swift Package Manager. The UI settings of the removed auto capture failure card no longer exist. Remove any assignments to them:
  • IdenfyPhotoResultViewUISettingsV2.idenfyPhotoResultViewAutoCaptureFailureCardImageColor
  • IdenfyPhotoResultViewUISettingsV2.idenfyPhotoResultViewAutoCaptureFailureCardTitleColor
  • IdenfyPhotoResultViewUISettingsV2.idenfyPhotoResultViewAutoCaptureFailureCardBackgroundColor

Document Camera Feedback Label Replaces the Alert Card

The document camera now shows feedback, such as “Fit within the frame” and “Hold still…”, in a label that the SDK adds to the camera screen. The yellow alert card is no longer shown. DocumentCameraViewableV2 documentCameraAlertCard, documentCameraAlertCardImage and documentCameraAlertCardTitle are deprecated. They remain in the protocol, so a custom view still compiles, but the SDK no longer displays them. Keep them hidden and do not add them to your layout:
IdenfyDocumentCameraSessionUISettingsV2 changed accordingly:
  • Removed: idenfyDocumentCameraAlertCardBackgroundColor, idenfyDocumentCameraAlertCardImageTintColor, idenfyDocumentCameraAlertCardTitleColor, idenfyDocumentCameraAlertCardTitleFont
  • Added: idenfyDocumentCameraPreviewSessionFeedbackLabelTextColor (white) and idenfyDocumentCameraPreviewSessionFeedbackLabelFont (semibold, 14pt)
  • Added: idenfyDocumentCameraPreviewSessionScanBandColor (idenfyBorderGreenV2), idenfyDocumentCameraPreviewSessionRectangleDetectedColor (idenfyBorderGreenV2) and idenfyDocumentCameraPreviewSessionRectangleWarningColor (idenfyDarkRedErrorColorV2) — the colors of the scan band and of the document rectangle while the document fits the frame or needs adjusting

Camera Onboarding Instructions Redesigned

Every onboarding instruction is now a tip with an icon, a bold title and a description. The single title above the instruction list was removed. StaticCameraOnBoardingViewableV2 idenfyUILabelinstructionDescriptionsTitle was removed from the protocol and is no longer set by the SDK. If your custom view still declares it, remove the label from your layout and constrain instructionDescriptionsTableView to instructionCameraOnBoardingProgressView instead. InstructionDescriptionsCellViewableV2 The protocol has three new requirements: instructionDescriptionsIcon, instructionDescriptionsTitleLabel and instructionDescriptionsDescLabel. A custom cell must add them to compile. instructionDescriptionsLabel and instructionDescriptionsCircle are deprecated in favor of the title label and the icon.
IdenfyStaticCameraOnBoardingViewUISettingsV2 changed accordingly:
  • Removed: idenfyCameraOnBoardingInstructionDetailsTitleTextColor, idenfyCameraOnBoardingInstructionDetailsTitleTextFont
  • Added: idenfyCameraOnBoardingInstructionDetailsTableViewCellDescColor, idenfyCameraOnBoardingInstructionDetailsTableViewCellTitleFont (bold, 14pt)

Face Detection Indicators Deprecated

DrawerContentViewableV2 faceDetectionAlertImage and faceDetectionProgressViewV2 are deprecated and no longer used. They remain in the protocol, so a custom drawer still compiles. Keep them hidden. IdenfyCommonColors.idenfyFaceDetectedColor and IdenfyCommonColors.idenfyFaceNotDetectedColor were removed. Remove any assignments to them, otherwise your code does not compile, and set the face oval colors in IdenfyFaceCameraSessionUISettingsV2 instead: IdenfyFaceCameraSessionUISettingsV2 also has two new fields: idenfyFaceCameraPreviewSessionFaceOvalWarningColor (idenfyDarkRedErrorColorV2) — the oval color when the face is outside the oval, too close, too far, or when several faces or closed eyes are detected — and idenfyFaceCameraPreviewSessionScanBandColor (idenfyBorderGreenV2) — the scan band shown inside the oval. IdenfyCommonColors.idenfyGrayColorV2 is a new common color.

Camera Drawer Anchored to the Safe Area

In DocumentCameraViewV2 and FaceCameraViewV2, the drawer no longer has a fixed height. Its bottom is constrained to the top of the safe area, so the layout follows inset changes such as an iPhone Duo fold or unfold:
In FaceCameraViewV2, the top of the face oval uses the same anchor. If your custom camera view copies the old constraints, update them to match.

Custom Logo Support

IdenfyUIBuilderV2 and IdenfyFaceAuthUIBuilder have a new withLogo(_:placement:) method, and Bank Card Verification has new IdenfyBankCardVerificationUISettings. These are additions — see Applying a Custom Logo.

New Landscape Camera Views

The document, face and bank card cameras now use separate views when the camera is shown wider than tall, for example on an unfolded iPhone Duo or in an iPad window. The camera screen is recreated when the orientation changes. The landscape views conform to the existing protocols, and the builder methods are additions to IdenfyViewsBuilderV2. If you provide a custom camera view without a landscape one, your custom view is used in both orientations — check that it lays out correctly when it is wider than tall, or provide a landscape view:

UI Settings Changes

  • Added to IdenfyCustomAlertDialogUISettings: idenfyCustomAlertDialogDimmedBackgroundColor (black) and idenfyCustomAlertDialogDimmedBackgroundAlpha (0.4) — the dim shown behind custom dialogs and bottom sheets. Dialogs previously used a fixed 0.6 alpha, so the default dim is lighter; set the alpha to 0.6 to keep the previous look.
  • Added to IdenfyBottomSheetUISettingsV2: idenfyBottomSheetDimmedBackgroundAlpha.
  • Added to IdenfyToolbarUISettingsV2: idenfyStatusBarStyle (.darkContent), idenfyCameraPreviewSessionStatusBarStyle (.lightContent), idenfyDuoSideToolbarEnabled, idenfyDuoButtonStyle and idenfyDuoButtonTintColor.

[9.2.3] -> [9.2.7]

Document Not Found Alert Renamed to Country Mismatch Alert

IdenfyDocNotFoundAlert has been renamed to IdenfyCountryMismatchAlert. The delegate protocol has also been renamed:
If you have overridden IdenfyDocNotFoundAlert or implemented its delegate, update to the new class and protocol names and add the new countryMismatchAlertBackButtonPressedAction() method.

Alert Background Color Consolidation

A new shared IdenfyCustomAlertDialogUISettings class has been added. Existing alert UI settings classes (IdenfyGlareAndBlurAlertUISettigsV2, IdenfyInstructionAlertUISettigsV2, IdenfyMismatchFoundAlertUISettigsV2, IdenfyMrzNotFoundAlertUISettigsV2, IdenfyPrivacyPolicyViewUISettingsV2) now delegate their background color defaults to IdenfyCustomAlertDialogUISettings.idenfyCustomAlertDialogBackgroundColor. If you were overriding per-alert background colors, the behavior is unchanged — but you can now use the single shared override point instead.

New Bank Card Verification Views

Nine new Viewable protocols have been added for the Bank Card Verification standalone flow:
  • BankCardOnboardingViewableV2
  • BankCardUploadViewableV2
  • BankCardUploadReviewViewableV2
  • BankCardSelectionViewableV2
  • BankCardCameraViewableV2
  • BankCardPhotoResultViewableV2
  • BankCardVerificationPrivacyPolicyViewableV2
  • BankCardVerificationResultsViewableV2
  • EIDSessionCPFCheckViewableV2
These are wired into IdenfyViewsBuilderV2 via new withBankCard*ViewV2(...) builder methods. No existing builder methods or protocols have changed — these are pure additions.

Glare and Blur Alert UI Settings Updated

IdenfyGlareAndBlurAlertUISettigsV2 has new properties and a font change:
  • Added: idenfyGlareAndBlurAlertCommonInformationSummaryTextColor and idenfyGlareAndBlurAlertCommonInformationSummaryFont (bold, 20sp) — control the new summary label style.
  • Changed: idenfyGlareAndBlurAlertCommonInformationTitleFont changed from bold 24sp to regular 14sp. The title label now serves as a description below the summary.
If you were overriding idenfyGlareAndBlurAlertCommonInformationTitleFont, review your customization — the label’s role has changed.

[9.1.x] -> [9.2.2]

Face Oval View

IdenfyFaceOvalV2 has been removed. IdenfyFaceOvalV3 is now the only face oval class. The deprecated idenfyUIViewFaceOval (typed as IdenfyFaceOvalV2) has been removed from the FaceCameraViewableV2 protocol:

If You Already Use IdenfyFaceOvalV3

No changes needed. Just remove the old IdenfyFaceOvalV2 property if you still have it.

If You Still Use IdenfyFaceOvalV2

Replace it with an IdenfyFaceOvalV3 instance under the idenfyUIViewFaceOvalV3 property name:

Face Detection Progress View

The deprecated faceDetectionProgressView has been removed from DrawerContentViewableV2. The remaining faceDetectionProgressViewV2 is the only progress view:

If You Already Use faceDetectionProgressViewV2

No changes needed. Just remove the old faceDetectionProgressView property if you still have it.

If You Still Use faceDetectionProgressView

Rename it to faceDetectionProgressViewV2:

[9.0.x] -> [9.1.0]

RTL Layout Support

Arabic locale support has been added. All SDK views now use leading/trailing constraints instead of left/right to properly support right-to-left (RTL) languages. If you have overridden any SDK views, you must migrate your custom constraints to use leading/trailing instead of left/right, otherwise runtime crashes may occur. For example:
  • leftAnchor → leadingAnchor
  • rightAnchor → trailingAnchor
  • NSLayoutConstraint with .left → .leading
  • NSLayoutConstraint with .right → .trailing
  • Text Alignment with .left → .idenfyNatural
  • Transform Direction with Hardcoded → idenfyDirectionalTranslation:
You can check our updated, fully implemented views in the sample application.

[8.x.x] -> [9.0.0]

New iDenfy Privacy Policy View

New privacy policy view is a required step for onboarding users. PrivacyPolicyViewableV2 was completely redone: New Privacy Policy
A new color from IdenfyCommonColors is used in this view:

Country and Document Selection Steps Combined Into One View

A new Country & Document selection view was added, which combines the old two views into one. The new CountryAndDocumentSelectionViewable is added: New Country & Document selection
New colors from IdenfyCommonColors are used in this view:

Auto Country and Document Detection Feature

Along with this feature, a new card is presented in DocumentCameraViewableV2 to show detected country and supported documents for it. An updated view looks like this: New Country & Document selection

Updated UI for iDenfy Splash Screen

Both SplashScreenV2View and FaceAuthenticationSplashScreenV2View were redone, we use simple white and black colors without complicated iDenfy gradients: New Splash Screen
A new color from IdenfyCommonColors is used in this view:

[8.6.x] to [8.7.5]

Updated Country Selection UISearchBar to Support iOS 26

Follow this migration guide point if you have implemented custom views of CountrySelectionViewableV2.
Update the country search bar to the following to avoid iOS 26 rounding up the corners:

[8.6.2] to [8.6.3]

Updated Face Capture Oval Design

Face Oval V2
Follow this migration guide point if you have implemented custom views of FaceCameraViewableV2.
A new idenfyUIViewFaceOvalV3 oval class was added, which replaces idenfyUIViewFaceOval in FaceCameraViewableV2:
The idenfyUIViewFaceOval is still available but deprecated and will be removed in the future.

[8.5.x] to [8.6.0]

Added Realtime Blur Glare Detection in Document Capture

Follow this migration guide point if you have implemented custom views of DocumentCameraViewableV2.
With the latest realtime blur glare detection feature, a warning alert card was added to DocumentCameraViewableV2:

[8.5.x] to [8.5.7]

KYC Questionnaire FILE and IMAGE Questions Merged

ImageQuestionCell has been removed:

[8.4.x] to [8.5.0]

Added Face Detection Progress View to the Camera Drawer

Follow this migration guide point if you have implemented custom views of DrawerContentViewableV2.
With the latest face authentication auto capture feature, a progress view was added to DrawerContentViewableV2:

[8.3.x] to [8.4.0]

Removed Dynamic OnBoarding View

.withOnBoardingViewType(.multipleDynamic) option is no longer available in IdenfyUISettingsV2.
Follow this migration guide point if you have implemented custom views of DynamicCameraOnBoardingViewableV2.
The IdenfyViewsBuilderV2 will no longer have a .withDynamicCameraOnBoardingView option. Use .withStaticCameraOnBoardingView viewable instead. You can check new, fully implemented views in the sample application. The IdenfyDynamicCameraOnBoardingViewUISettingsV2 class has been removed. The static onBoarding view has its own IdenfyStaticCameraOnBoardingViewUISettingsV2 class.

[8.2.x] to [8.3.0]

Removed Instructions Drawer Option from Camera View

The instructions drawer has been removed. The top drawer will remain static as if instructions were disabled, and will only hold camera descriptions and the app bar. .withInstructions(IdenfyInstructionsType.drawer) option is no longer available in IdenfyUIBuilderV2.
Follow this migration guide point if you have implemented custom views of DrawerContentViewableV2, DocumentCameraViewableV2 or FaceCameraViewableV2.
The IdenfyViewsBuilderV2 will no longer have a .withDrawerContentView option. However, DocumentCameraViewableV2 and FaceCameraViewableV2 now include the DrawerContentViewableV2 view, which you can easily override:
The setupUIViewFaceOval() function of FaceCameraViewV2 has been refactored with a helper function to get the drawer height:
The DrawerContentViewableV2 protocol has changed:
As well as the CameraSessionDrawerDelegate:
You can check new, fully implemented views in the sample application. All colors and UI customizations related to the instructions drawer have been removed. See the updated UI customization files.

After Capturing Photos, Camera Results View Will Appear Instantly

Since the camera results view will appear instantly, it will show a loading spinner while the photo loads.
Follow this migration guide point if you have implemented custom views of CameraResultViewableV2.
The CameraResultViewableV2 now has an additional photoResultDetailsSpinner view you must implement:
Find fully implemented views in the sample application.

Changed Photo Cropping to Preserve Higher Resolution

The position of the document camera rectangle has been changed to match the logic of the Android SDK. Now the x position will be 0.05 * screen width. The CameraSessionsButtonsViewV2 height multiplier has been moved to a constant. It affects picture cropping. Make sure you change the height of idenfyUIViewContainerOfButtons by changing the idenfyCameraBottomControlsHeightMultiplier constant:
Find fully implemented views in the sample application.