Created
November 12, 2018 18:56
-
-
Save turbulem/8d62a9910bf6c73a9f03f46d6cafa326 to your computer and use it in GitHub Desktop.
GifSwift usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import GifSwift | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| if let file = GifFile(path: Bundle.main.url(forResource: "cat", withExtension: "gif")!) { | |
| debugPrint("Image has size: \(file.size) and contains \(file.imagesCount) images") | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment