PreScanningForActiveFaceCapture

struct PreScanningForActiveFaceCapture : View

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

  • State variable to control the first animation

    Declaration

    Swift

    @State
    private var showFirstAnimation: Bool { get nonmutating set }
  • Duration of the animation

    Declaration

    Swift

    private let animationDuration: TimeInterval
  • Binding variables for path

    Declaration

    Swift

    @Binding
    var path: Bool { get nonmutating set }
  • Binding variables for qrBytes

    Declaration

    Swift

    @Binding
    var qrBytes: [UInt8] { get nonmutating set }
  • Flag to determine if the front camera is active

    Declaration

    Swift

    @State
    var isFrontCamera: Bool { get nonmutating set }
  • Password for the active face capture

    Declaration

    Swift

    var password: String
  • Type of view (qrGeneratorView or qrScannerView)

    Declaration

    Swift

    var typeView: TypeView?
  • Presentation mode environment variable

    Declaration

    Swift

    @Environment
    var presentationMode: Binding<PresentationMode> { get }
  • Declaration

    Swift

    var body: some View { get }
  • Function to start the animation loop

    Declaration

    Swift

    private func startAnimationLoop()