Structures
The following structures are available globally.
-
Declaration
Swift
struct CameraView : UIViewControllerRepresentable
-
circular view to show the number which is used in pre scanning tip view
See moreDeclaration
Swift
struct CircleNumberView : View
-
The CircularProgressView struct is a view that displays a circular progress indicator.
See moreDeclaration
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.
Declaration
Swift
struct ConfirmationDialog : View
-
Creates a dialog view with a single button.
See moreDeclaration
Swift
struct DialogViewForQRSaved : View
-
Creates a dialog view with a single button.
See moreDeclaration
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 moreDeclaration
Swift
struct faceCaptureErrorDialog : View
-
Declaration
Swift
struct FaceScanCameraView : UIViewControllerRepresentable
-
The LoadingProgressView struct is a view that displays a circular progress indicator.
See moreDeclaration
Swift
struct LoadingProgressView : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
public struct LottieView : UIViewRepresentable
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
struct ZoomInLottie : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
struct ZoomInLottieForQrScanner : View
-
This view is to show the animation for lotti files
See moreDeclaration
Swift
struct LottieViewFor : UIViewRepresentable
-
A view representing the content of the SenseCrypt SDK offline.
See moreDeclaration
Swift
public struct SenseCryptContentView : View
-
A preview provider for the SenseCryptContentView.
See moreDeclaration
Swift
struct SenseCryptContentView_Previews : PreviewProvider
-
Struct that represents the error with a code and message.
See moreDeclaration
Swift
struct ErrorType : Error
-
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
-
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
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
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
struct PreScanningForActiveFaceCapture : View
-
Clear Data Component represents a view that displays the key and value of the data
See moreDeclaration
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 moreDeclaration
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.
Declaration
Swift
@available(iOS 16.0, *) struct BackToMainFromClearData : View
-
This View is also used in genrate QR view for date pickers
See moreDeclaration
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 moreDeclaration
Swift
public struct GenerateQrView : View
-
A struct to handle the back button for the generate QR view.
See moreDeclaration
Swift
struct BackToMainFromGenerateQR : View
-
A struct to handle the liveness view section.
See moreDeclaration
Swift
struct LivenessViewSection : View
-
A struct to handle date picker view.
See moreDeclaration
Swift
struct DateOfIssueView : View
-
A struct to handle the date of birth section view.
See moreDeclaration
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 moreDeclaration
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.
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 moreDeclaration
Swift
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, *) struct HomeView : View
-
SenseCrypt card view feature with image and title shown in home page
See moreDeclaration
Swift
struct StackViewForHomePage : View
-
Face Region Overlay Section
See moreDeclaration
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.
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 moreDeclaration
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 moreDeclaration
Swift
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
struct CardView : View
-
Person Meta Data Component with key and value
See moreDeclaration
Swift
struct PersonMetaDataComponent : View
-
QR code Scanner view back button
See moreDeclaration
Swift
struct BackButtonQRScannerView : View
-
Declaration
Swift
struct PasswordDialog : View
-
Round corner password text field with border
See moreDeclaration
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 moreDeclaration
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 moreDeclaration
-
Check if the password is required.
See moreDeclaration
Swift
struct QRScannerBottomSection : PreviewProvider
-
This view is related to QR scanner where it draws the square on top of the camera
See moreDeclaration
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 moreDeclaration
Swift
struct SnackBar : View
-
This view is for the mobile lic details This view is used in Personal details UI view
See moreDeclaration
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 moreDeclaration
Swift
struct SettingView : View
-
Back button for setting view
See moreDeclaration
Swift
struct BackButtonForSettionView : View
-
Tool tip text with rounded corner background
See moreDeclaration
Swift
struct ToolTipText : View
-
A view representing the splash screen of the app.
See moreDeclaration
Swift
struct SplashScreen : View
-
Splace screen preview.
See moreDeclaration
Swift
struct SplashScreen_Previews : PreviewProvider
-
The main entry point of the application.
See moreDeclaration
Swift
@main struct SenseCryptSwiftApp : App