PreScanningForActiveFaceCapture

@MainActor
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
    @MainActor
    private var showFirstAnimation: Bool { get nonmutating set }
  • Duration of the animation

    Declaration

    Swift

    @MainActor
    private let animationDuration: TimeInterval
  • Binding variables for qrBytes

    Declaration

    Swift

    @State
    @MainActor
    var qrBytes: [UInt8] { get nonmutating set }
  • Password for the active face capture

    Declaration

    Swift

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

    Declaration

    Swift

    @MainActor
    var typeView: TypeView?
  • 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 start the animation loop

    Declaration

    Swift

    @MainActor
    private func startAnimationLoop()