I\'m trying to save a UIImage to NSData and then read the NSData back to a new UIImage in Swift. To convert the UII
UIImage
NSData
UII
Swift 5
let the image you create as UIImage be image
image.pngData() as NSData?