UIImage(data:imageData,scale:1.0)
presuming the image’s scale is 1.
In swift 4.2, use below code for get Data().
image.pngData()
UIImage(data:imageData,scale:1.0)
presuming the image’s scale is 1.
In swift 4.2, use below code for get Data().
image.pngData()