QrDetailView

@available(iOS 16.0, *)
@MainActor
struct QrDetailView : 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.

  • The byte array representing the QR code image.

    Declaration

    Swift

    @MainActor
    var qrImgBytes: [UInt8]
  • State property to control the dialog view.

    Declaration

    Swift

    @State
    @MainActor
    var isShowDialog: Bool { 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 }
  • Background image sections for styling

    See more

    Declaration

    Swift

    @MainActor
    struct BackgroundImageSections : View
  • Declaration

    Swift

    @MainActor
    var body: some View { get }
  • Function to save the QR code image to device’s photo library using UIImageWriteToSavedPhotosAlbum method.

    • qrImgBytes: The byte array representing the QR code image.

    Declaration

    Swift

    @MainActor
    func saveImage()

    Return Value

    Void.