Structures
The following structures are available globally.
-
Declaration
Swift
@MainActor struct CameraView : UIViewControllerRepresentable
-
circular view to show the number which is used in pre scanning tip view
See moreDeclaration
Swift
@MainActor struct CircleNumberView : View
-
The CircularProgressView struct is a view that displays a circular progress indicator.
See moreDeclaration
Swift
@MainActor 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.
Declaration
Swift
@MainActor struct ConfirmationDialog : View
-
Creates a dialog view with a single button.
See moreDeclaration
Swift
@MainActor struct DialogViewForQRSaved : View
-
Creates a dialog view with a single button.
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct faceCaptureErrorDialog : View
-
Declaration
Swift
@MainActor struct FaceScanCameraView : UIViewControllerRepresentable
-
The LoadingProgressView struct is a view that displays a circular progress indicator.
See moreDeclaration
Swift
@MainActor struct LoadingProgressView : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
@MainActor public struct LottieView : UIViewRepresentable
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
@MainActor struct ZoomInLottie : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
@MainActor struct ZoomInLottieForQrScanner : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
@MainActor struct LottieViewFor : UIViewRepresentable
-
A view representing the content of the SenseCrypt SDK offline.
See moreDeclaration
Swift
@MainActor public struct SenseCryptContentView : View
-
A preview provider for the SenseCryptContentView.
See moreDeclaration
Swift
@MainActor struct SenseCryptContentView_Previews : PreviewProvider
-
This model is used to store and tranfer the data throw diffreent view and verify the sensePrint
See moreDeclaration
Swift
struct DecryptSensePrintModel : Hashable
-
Struct that represents the error with a code and message.
See moreDeclaration
Swift
struct ErrorType : Error
-
This model is used for generating SensePrint, It is also used to transfer data between screens.
See moreDeclaration
Swift
struct GenerateSensePrintModel : Hashable
-
App Config is to fetch the values from config files if there is no config files the values will be fetched from the default values
See moreDeclaration
Swift
struct AppConfig : Decodable
-
A utility class for file operations.
See moreDeclaration
Swift
struct FileUtils
-
Struct to create a border around the view.
See moreDeclaration
Swift
struct EdgeBorder : Shape
-
Custom shape to round specific corners
See moreDeclaration
Swift
struct RoundedCorner : 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 moreDeclaration
Swift
@MainActor 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.
Declaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct PreScanningForActiveFaceCapture : View
-
Clear Data Component represents a view that displays the key and value of the data
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct ClearDataView : View
-
Back button for clear data
- onTapBack: The closure to be executed when the back button is tapped.
Declaration
Swift
@available(iOS 16.0, *) @MainActor struct BackToMainFromClearData : View
-
This View is also used in genrate QR view for date pickers
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor public struct GenerateQrView : View
-
A struct to handle the back button for the generate QR view.
See moreDeclaration
Swift
@MainActor struct BackToMainFromGenerateQR : View
-
A struct to handle the liveness view section.
See moreDeclaration
Swift
@MainActor struct LivenessViewSection : View
-
A struct to handle date picker view.
See moreDeclaration
Swift
@MainActor struct DateOfIssueView : View
-
A struct to handle the date of birth section view.
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor 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.
Declaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct ErrorTextField : View
-
HomeView
- Description: This struct is used to display the home and entry page of the application.
Declaration
Swift
@available(iOS 16.0, *) @MainActor struct HomeView : View
-
SenseCrypt card view feature with image and title shown in home page
See moreDeclaration
Swift
@MainActor struct StackViewForHomePage : View
-
Face Region Overlay Section
See moreDeclaration
Swift
@MainActor 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.
- 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.
Declaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct PersonDetailView : View
-
This struct represents a card view that displays the details of a person. It conforms to the View protocol.
See moreDeclaration
Swift
@MainActor struct CardView : View
-
Person Meta Data Component with key and value
See moreDeclaration
Swift
@MainActor struct PersonMetaDataComponent : View
-
QR code Scanner view back button
See moreDeclaration
Swift
@MainActor struct BackButtonQRScannerView : View
-
Declaration
Swift
@MainActor struct PasswordDialog : View
-
Round corner password text field with border
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@available(iOS 16.0, *) @MainActor 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 moreDeclaration
Swift
@available(iOS 16.0, *) @MainActor struct QrScannerView : View
extension QrScannerView: QrBytesListener
-
This view is related to QR scanner where it draws the square on top of the camera
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct SnackBar : View
-
This View show the info dialog for all the camera process related setting
See moreDeclaration
Swift
@MainActor struct CameraSettingInformationView : 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 moreDeclaration
Swift
@MainActor struct GenerateAndVerifySensePrintToggle : View
-
Declaration
Swift
@MainActor struct GenerateAndVerifySensePrintToggle_Previews : PreviewProvider
-
This view is for the mobile lic details This view is used in Personal details UI view
See moreDeclaration
Swift
@MainActor 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 moreDeclaration
Swift
@MainActor struct SettingInformationView : 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 moreDeclaration
Swift
@MainActor struct SettingView : View
-
Back button for setting view
See moreDeclaration
Swift
@MainActor struct BackButtonForSettionView : View
-
Declaration
Swift
@MainActor struct SettingViewPreview : PreviewProvider
-
Tool tip text with rounded corner background
See moreDeclaration
Swift
@MainActor struct ToolTipText : View
-
Declaration
Swift
@MainActor struct PrivacyConfirmationDialogBox : View
-
A view representing the splash screen of the app.
See moreDeclaration
Swift
@MainActor struct SplashScreen : View
-
The main entry point of the application.
See moreDeclaration
Swift
@main @MainActor struct SenseCryptSwiftApp : App