nvzqz / FileKit

Simple and expressive file management in Swift
https://nvzqz.github.io/FileKit/docs/
MIT License
2.34k stars 207 forks source link

'pngData()' has been renamed to 'UIImagePNGRepresentation(_:)' #66

Closed ArturGasparyan closed 5 years ago

ArturGasparyan commented 5 years ago

In Image+FileKit.swift on line 66 I get the following error:

'pngData()' has been renamed to 'UIImagePNGRepresentation(_:)'

Changing self.pngData() to UIImagePNGRepresentation(self) solves the issue. Please, kindly update.

phimage commented 5 years ago

https://developer.apple.com/documentation/uikit/uiimage/1624096-pngdata You use an old swift version I think