FileUtils
struct FileUtils
A utility class for file operations.
-
Saves the QR code image to the device’s photo library. It requests authorization to access the photo library and saves the image using UIImageWriteToSavedPhotosAlbum method.
Declaration
Swift
static func saveImage(qrImgBytes: [UInt8], completion: @escaping (Bool) -> Void)
Parameters
qrImgBytes
The byte array representing the QR code image.
completion
The completion handler to be called after the image is saved.