PreScanningForPassiveFaceCapture

@MainActor
struct PreScanningForPassiveFaceCapture : View

This is pre scanning view appears before active face capture view to show the user instruction on how to scan the face

  • Binding property for qrBytes

    Declaration

    Swift

    @State
    @MainActor
    var qrBytes: [UInt8] { get nonmutating set }
  • TypeView enum to represent the type of view

    Declaration

    Swift

    @MainActor
    var typeView: TypeView?
  • State property for isLoading

    Declaration

    Swift

    @State
    @MainActor
    var isLoading: Bool { get nonmutating set }
  • State property for password

    Declaration

    Swift

    @MainActor
    var password: String
  • State property for recordId

    Declaration

    Swift

    @MainActor
    var recordId: String
  • State property for currentZoomFactor

    Declaration

    Swift

    @State
    @MainActor
    private var currentZoomFactor: CGFloat { get nonmutating set }
  • This EnvironmentObject navigationStore give access to all the view we want to navigate to and from It can be used to pop and push the view in the stack.

    Declaration

    Swift

    @EnvironmentObject
    @MainActor
    private var navigationStore: NavigationStackController { get }
  • Declaration

    Swift

    @MainActor
    var body: some View { get }
  • Function to create a tip card view

    • imageName: The name of the image
    • faceImageName: The name of the face image
    • text: The text to display in the card

    Declaration

    Swift

    @MainActor
    private func tipCard(imageName: String, faceImageName: String, text: String) -> some View

    Return Value

    A view representing the tip card