ALCameraContext

@MainActor
public final class ALCameraContext : ObservableObject

The ALCameraView context.

  • The camera configuration.

    Declaration

    Swift

    @MainActor
    public let config: ALCameraConfiguration
  • The action to call on dismiss.

    Declaration

    Swift

    @MainActor
    public let dismissAction: () -> Void
  • The localized hint.

    Declaration

    Swift

    @Published
    @MainActor
    public var hint: LocalizedStringKey? { get set }
  • The camera mode.

    Declaration

    Swift

    @Published
    @MainActor
    public var mode: ALCameraMode { get set }
  • If the flash is active.

    Declaration

    Swift

    @Published
    @MainActor
    public var isFlashActive: Bool { get set }
  • The camera validation.

    Declaration

    Swift

    @Published
    @MainActor
    public var validation: ALCameraValidation? { get set }
  • The current step.

    Declaration

    Swift

    @Published
    @MainActor
    public var currentStep: Int { get set }
  • The total amount of steps.

    Declaration

    Swift

    @Published
    @MainActor
    public var totalSteps: Int { get set }