Structures

The following structures are available globally.

  • CameraView

    • Description: This class is a wrapper for CameraViewController
    See more

    Declaration

    Swift

    struct CameraView : UIViewControllerRepresentable
  • circular view to show the number which is used in pre scanning tip view

    See more

    Declaration

    Swift

    struct CircleNumberView : View
  • The CircularProgressView struct is a view that displays a circular progress indicator.

    See more

    Declaration

    Swift

    struct CircularProgressView : View
  • A custom view representing a confirmation dialog. Use this view to display a dialog with a title, message, and two buttons: a cancel button and a retry button. The dialog can be shown or hidden by setting the isActive binding.

    • title: The title of the dialog.
    • message: The message displayed in the dialog.
    • buttonTitle: The title of the retry button.
    • cancelButtonTitle: The title of the cancel button.
    • isActive: A binding that indicates whether the dialog is active or not.
    • onTapCloseButton: A closure to be called when the cancel button is tapped.
    • onTapRetryButton: A closure to be called when the retry button is tapped.
    See more

    Declaration

    Swift

    struct ConfirmationDialog : View
  • Creates a dialog view with a single button.

    See more

    Declaration

    Swift

    struct DialogViewForQRSaved : View
  • Creates a dialog view with a single button.

    See more

    Declaration

    Swift

    struct DialogViewWithSingleButton : View
  • This dialog is shown when the liveness failure error happens. This dialog is also used for extreme motion detected error that happens during face scan.

    See more

    Declaration

    Swift

    struct faceCaptureErrorDialog : View
  • FaceScanCameraView

    • Description: This class is a wrapper for FaceScannerController.
    See more

    Declaration

    Swift

    struct FaceScanCameraView : UIViewControllerRepresentable
  • The LoadingProgressView struct is a view that displays a circular progress indicator.

    See more

    Declaration

    Swift

    struct LoadingProgressView : View
  • This view is to show the animation for lotti files

    See more

    Declaration

    Swift

    public struct LottieView : UIViewRepresentable
  • This view is to show the animation for lotti files

    See more

    Declaration

    Swift

    struct ZoomInLottie : View
  • This view is to show the animation for lotti files

    See more

    Declaration

    Swift

    struct ZoomInLottieForQrScanner : View
  • This view is to show the animation for lotti files

    See more

    Declaration

    Swift

    struct LottieViewFor : UIViewRepresentable
  • A view representing the content of the SenseCrypt SDK offline.

    See more

    Declaration

    Swift

    public struct SenseCryptContentView : View
  • A preview provider for the SenseCryptContentView.

    See more

    Declaration

    Swift

    struct SenseCryptContentView_Previews : PreviewProvider
  • Struct that represents the error with a code and message.

    See more

    Declaration

    Swift

    struct ErrorType : Error
  • A utility class for file operations.

    See more

    Declaration

    Swift

    struct FileUtils
  • Struct to create a border around the view.

    See more

    Declaration

    Swift

    struct EdgeBorder : Shape
  • This is an alert dialog box the to show on the active face capture screen when error during the face scan happens action happens This dialog box also includes animation

    See more

    Declaration

    Swift

    struct ActiveCaptureErrorDialog : View
  • Active Face Capture view This view is responsible for capturing the user’s face and guiding them through the process. It includes animations, instructions, and error handling.

    • The view starts by setting up the initial camera configuration and preparing for face scanning.
    • It displays a camera view with a red circle indicating the user’s face position.
    • It also includes an arc animation to guide the user on where to position their face.
    • Instructions are displayed based on the current state of the face capture process.
    • The view handles different types of errors that may occur during face capture, such as timeout, motion too fast, or liveness failure.
    • It includes functions to show dialogs with retry options or single button confirmation based on the error type.
    • The view also decrypts QR data after successful face capture and displays person details if decryption is successful. Overall, this view provides a seamless experience for users to capture their faces accurately and handle any errors that may occur during the process.
    See more

    Declaration

    Swift

    struct ActiveFaceCaptureView : View
  • This is pre scanning view appears before active face capture view to show the user instruction on how to scan the face

    See more

    Declaration

    Swift

    struct PreScanningForActiveFaceCapture : View
  • Clear Data Component represents a view that displays the key and value of the data

    See more

    Declaration

    Swift

    struct ClearDataComponent : View
  • If the mask id is not empty during the generation of the QR code, this view will be shown with user information and face is not required to see the information. This is a sense print reader.

    See more

    Declaration

    Swift

    @available(iOS 16.0, *)
    struct ClearDataView : View
  • Declaration

    Swift

    struct NavigationTransitionModifier : ViewModifier
  • Back button for clear data

    • onTapBack: The closure to be executed when the back button is tapped.
    See more

    Declaration

    Swift

    @available(iOS 16.0, *)
    struct BackToMainFromClearData : View
  • This View is also used in genrate QR view for date pickers

    See more

    Declaration

    Swift

    struct CustomDatePicker : View
  • This struct represents the view for generating a QR code. It includes various text fields and buttons for user input. It also handles error messages and loading indicators.

    See more

    Declaration

    Swift

    public struct GenerateQrView : View
  • A struct to handle the back button for the generate QR view.

    See more

    Declaration

    Swift

    struct BackToMainFromGenerateQR : View
  • A struct to handle the liveness view section.

    See more

    Declaration

    Swift

    struct LivenessViewSection : View
  • A struct to handle date picker view.

    See more

    Declaration

    Swift

    struct DateOfIssueView : View
  • A struct to handle the date of birth section view.

    See more

    Declaration

    Swift

    struct DateOfBirthSectionView : View
  • This view is used in genrate QR view for 2 button where user can select if they want the liveness to be on or off which means if they genrate QR with liveness on the have to present the live face while decrypting the QR

    See more

    Declaration

    Swift

    struct LivenessToggleButton : View
  • This Text field view is used in genrate QR view to take all the personal details of the user before creating a QR code

    • placeholder: The placeholder text for the text field.
    • field: The field type.
    • nextField: The next field.
    • focusedField: The focus state for the text field.
    • isFocused: A private property to track if the text field is focused or not.
    See more

    Declaration

    Swift

    struct MaterialTextField : View

    Return Value

    A SwiftUI view representing a material text field.

  • Error text field view is used in genrate QR view to show the error in the text field

    See more

    Declaration

    Swift

    struct ErrorTextField : View
  • HomeView

    • Description: This struct is used to display the home and entry page of the application.
    See more

    Declaration

    Swift

    @available(iOS 16.0, *)
    struct HomeView : View
  • SenseCrypt card view feature with image and title shown in home page

    See more

    Declaration

    Swift

    struct StackViewForHomePage : View
  • Face Region Overlay Section

    See more

    Declaration

    Swift

    struct FaceOvalOverlaySection : View
  • Represents a view for passive face capture. This view is responsible for capturing the user’s face passively and performing various actions based on the captured data. It includes features such as generating QR codes, scanning QR codes, and displaying detailed information about the captured face.

    • path: A binding to a boolean value indicating the current path.
    • qrBytes: A binding to an array of UInt8 representing the QR code bytes.
    • recordId: A string representing the record ID.
    • faceBytes: A data object representing the captured face bytes.
    • password: A string representing the password.
    • typeView: An optional TypeView enum representing the type of view.
    • sessionForDecriptQr: An optional PassiveFaceCaptureSession representing the session for decrypting QR codes. Note: This view requires camera access permission from the user.
    See more

    Declaration

    Swift

    struct PassiveFaceCaptureView : View
  • This is pre scanning view appears before active face capture view to show the user instruction on how to scan the face

    See more

    Declaration

    Swift

    struct PreScanningForPassiveFaceCapture : View
  • This view display all the details of the user after scanning the QR code successfully. This struct represents the detail view of a person. It conforms to the View protocol.

    See more

    Declaration

    Swift

    struct PersonDetailView : View
  • This struct represents a card view that displays the details of a person. It conforms to the View protocol.

    See more

    Declaration

    Swift

    struct CardView : View
  • Person Meta Data Component with key and value

    See more

    Declaration

    Swift

    struct PersonMetaDataComponent : View
  • QR code Scanner view back button

    See more

    Declaration

    Swift

    struct BackButtonQRScannerView : View
  • Declaration

    Swift

    struct PasswordDialog : View
  • Round corner password text field with border

    See more

    Declaration

    Swift

    struct PasswordTextField : View
  • This view displays the detailed view of a QR code. It allows the user to save the QR code image to their device’s photo library. It also includes a dialog view to inform the user when the image has been saved successfully.

    See more

    Declaration

    Swift

    @available(iOS 16.0, *)
    struct QrDetailView : View
  • A view for scanning QR codes. This view is responsible for scanning QR codes using the device’s camera. It manages various states and properties related to the scanning process, such as the camera manager, presentation mode, error handling, password input, and zoom level.

    See more

    Declaration

    Swift

    @available(iOS 16.0, *)
    struct QrScannerView : View
    extension QrScannerView: QrBytesListener
  • Check if the password is required.

    See more

    Declaration

    Swift

    struct QRScannerBottomSection : PreviewProvider
  • This view is related to QR scanner where it draws the square on top of the camera

    See more

    Declaration

    Swift

    struct ScannerSection : View
  • This snack bar is designed like a tost view to show it on QR scanner view when in valid QR is presented

    See more

    Declaration

    Swift

    struct SnackBar : View
  • This view is for the mobile lic details This view is used in Personal details UI view

    See more

    Declaration

    Swift

    struct LicenseInfoComponent : View
  • This view is show all the details related to mobile Lic and device imfo with app version and SDK version,It also displays cust ID

    See more

    Declaration

    Swift

    struct SettingView : View
  • Back button for setting view

    See more

    Declaration

    Swift

    struct BackButtonForSettionView : View
  • Tool tip text with rounded corner background

    See more

    Declaration

    Swift

    struct ToolTipText : View
  • A view representing the splash screen of the app.

    See more

    Declaration

    Swift

    struct SplashScreen : View
  • Splace screen preview.

    See more

    Declaration

    Swift

    struct SplashScreen_Previews : PreviewProvider
  • The main entry point of the application.

    See more

    Declaration

    Swift

    @main
    struct SenseCryptSwiftApp : App

Backwards Deployment Support

  • A color resource.

    See more

    Declaration

    Swift

    struct ColorResource : Swift.Hashable, Swift.Sendable
  • An image resource.

    See more

    Declaration

    Swift

    struct ImageResource : Swift.Hashable, Swift.Sendable