SwiftyGif
FLAnimatedImage
Our great sponsors
SwiftyGif | FLAnimatedImage | |
---|---|---|
2 | 1 | |
1,919 | 7,904 | |
- | 0.2% | |
4.2 | 0.0 | |
23 days ago | about 1 month ago | |
Swift | Objective-C | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SwiftyGif
- URL to Gif
-
This is what you need to display a gif in SwiftUI!
I may be an old curmudgeon, but bringing in a huge WKWebView (let alone 5 of them!) just to show a GIF is not the best way to do it. There are native libraries like SwiftyGIF that I would investigate first.
FLAnimatedImage
-
Introducing Giffy: Effortlessly Display Animated GIFs in SwiftUI with the Memory-Efficient FLAnimatedImage
Currently, Apple doesn't offer an API to display animated GIF images in SwiftUI out of the box. So, we have to either rely on third-party libraries or build our own solution. In the UIKit realm, Flipboard offers [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage), one of the most robust and performant solutions to display GIFs in iOS. This solution has been battle-tested for many years in big-scale apps such as Facebook, Instagram, and Slack.
What are some alternatives?
gifu - High-performance animated GIF support for iOS in Swift
SwiftGif - [UNMAINTAINED] 🌠A small UIImage extension with gif support
SDWebImage - Asynchronous image downloader with cache support as a UIImageView category
YYImage - Image framework for iOS to display/encode/decode animated WebP, APNG, GIF, and more.
Kingfisher - A lightweight, pure-Swift library for downloading and caching images from the web.
APNGKit - High performance and delightful way to play with APNG format in iOS.
CYFastImage - DEPRECATED
YLGIFImage - Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
JWAnimatedImage - An animated gif & apng engine for iOS in Swift. Have a great performance on memory and cpu usage.