Latest 4.0.0
Homepage https://github.com/JanGorman/Zoetrope
License MIT
Platforms ios 8.0
Frameworks ImageIO, MobileCoreServices, CoreGraphics
Authors

Version
License
Platform
Carthage compatible

Requirements

  • Swift 4.2
  • iOS 8.0+
  • Xcode 9+

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

To use Zoetrope in your own project you use the UIImage and UIImageView extensions exposed by the library:

import Zoetrope

func viewDidLoad() {
  super.viewDidLoad()

  // This method auto-loads the image from the main bundle. If you need more control
  // or are downloading images over the air you can also use the Data initialiser:
  // UIImage(gifData: myData)
  guard let image = UIImage(gifName: "animated.gif") else {
    return
  }
  imageView.displayGif(image)
}

Here’s an animated gif of the simulator displaying an animated gif.

image

Installation

Zoetrope is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Zoetrope"

And Carthage. Add the following to your Cartfile and then run carthage update:

github "JanGorman/Zoetrope"

Author

@JanGorman

License

Zoetrope is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Zoetrope",
    "version": "4.0.0",
    "summary": "Animated gif image view with support for varying frame lengths written in Swift.",
    "description": "Who doesn't love animated gifs. Zoetrope adds a UIImageView extension that displays animated images with support for nvarying frame lengths. Simple.",
    "homepage": "https://github.com/JanGorman/Zoetrope",
    "license": "MIT",
    "authors": {
        "Jan Gorman": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JanGorman/Zoetrope.git",
        "tag": "4.0.0"
    },
    "social_media_url": "https://twitter.com/JanGorman",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "source_files": "Zoetrope/**/*.swift",
    "frameworks": [
        "ImageIO",
        "MobileCoreServices",
        "CoreGraphics"
    ]
}

Pin It on Pinterest

Share This