I\'m using UIImageWriteToSavedPhotosAlbum to save a UIImage to the user\'s photo album. The problem is that the image doesn\'t have transparency and is a JPG. I\'ve got the
In Swift 5:
func pngFrom(image: UIImage) -> UIImage { let imageData = image.pngData()! let imagePng = UIImage(data: imageData)! return imagePng }