Does anyone know how to convert a UIImage to a Base64 string, and then reverse it?
UIImage
I have the below code; the original image before encoding is good, bu
Decoding using convenience initialiser - Swift 5
extension UIImage { convenience init?(base64String: String) { guard let data = Data(base64Encoded: base64String) else { return nil } self.init(data: data) } }