QrDetailView
@available(iOS 16.0, *)
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
var qrImgBytes: [UInt8]
-
Binding to control the navigation path.
Declaration
Swift
@Binding var path: Bool { get nonmutating set }
-
State property to control the dialog view.
Declaration
Swift
@State var isShowDialog: Bool { get nonmutating set }
-
Background image sections for styling
See moreDeclaration
Swift
struct BackgroundImageSections : View
-
Declaration
Swift
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
func saveImage()
Return Value
Void.