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: UIImage, completion: @escaping (Bool) -> Void)Parameters
qrImgBytesThe byte array representing the QR code image.
completionThe completion handler to be called after the image is saved.