UIImagePNGRepresentation in swift 5

Swift 4: 

 UIImagePNGRepresentation(self) 

Swift 5:

self.pngData()

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift