SwiftGif alternatives and similar libraries
Based on the "GIF" category.
Alternatively, view SwiftGif alternatives based on common mentions on social networks and blogs.
FLAnimatedImage9.7 5.4 L3 SwiftGif VS FLAnimatedImagePerformant animated GIF engine for iOS
gifu8.7 4.1 L5 SwiftGif VS gifuHigh-performance animated GIF support for iOS in Swift
YYImage8.5 0.0 L1 SwiftGif VS YYImageImage framework for iOS to display/encode/decode animated WebP, APNG, GIF, and more.
APNGKit8.4 3.6 L4 SwiftGif VS APNGKitHigh performance and delightful way to play with APNG format in iOS.
YLGIFImage8.2 0.0 L5 SwiftGif VS YLGIFImageAsync GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
SwiftyGif8.0 1.0 L4 SwiftGif VS SwiftyGifHigh performance GIF engine
AnimatedGIFImageSerialization7.4 0.0 L4 SwiftGif VS AnimatedGIFImageSerializationComplete Animated GIF Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling
JWAnimatedImage7.1 0.0 L5 SwiftGif VS JWAnimatedImageAn animated gif & apng engine for iOS in Swift. Have a great performance on memory and cpu usage.
XAnimatedImage5.5 0.0 L3 SwiftGif VS XAnimatedImageXAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage
NSGIF22.4 0.0 L4 SwiftGif VS NSGIF2Convert live photos and videos into animated GIFs in iOS, or extract frames from them.
gif3d0.9 0.0 SwiftGif VS gif3dA tool support convert image gif to gif3d
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SwiftGif or a related project?
UIImage extension with gif support.
import SwiftGifOrigin // An animated UIImage let jeremyGif = UIImage.gif(name: "jeremy") // A UIImageView with async loading let imageView = UIImageView() imageView.loadGif(name: "jeremy") // A UIImageView with async loading from asset catalog(from iOS9) let imageView = UIImageView() imageView.loadGif(asset: "jeremy")
Install CocoaPods with the following command:
gem install cocoapods
Integrate SwiftGif into your Xcode project by creating a
platform :ios, '9.0' use_frameworks! target '<Your Target Name>' do pod 'SwiftGifOrigin', '~> 1.7.0' end
pod install to build your dependencies.
Install Carthage with Homebrew using the following command:
brew update brew install carthage
Add the following line to your
Cartfile to add SwiftGif:
github "bahlo/SwiftGif" ~> 1.7.0
carthage update to build the framework and drag the built
SwiftGif.framework into your Xcode project.
How does it work?
Easy, it does the following:
- Find out the duration of every frame
- Find the greatest common divisor
- Add frames accordingly to the greatest common divisor to an array
- Create an animated UIImage with the frames
$ xcodebuild \ -project SwiftGif.xcodeproj \ -scheme SwiftGif \ -sdk iphonesimulator \ -destination "platform=iOS Simulator,name=iPhone 8" \ build test \ CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
This project is heavily inspired by uiimage-from-animated-gif. Kudos to @mayoff. :thumbsup:
This repository is licensed under the MIT license, more under [LICENSE](LICENSE).
*Note that all licence references and agreements mentioned in the SwiftGif README section above are relevant to that project's source code only.