SwiftGif



TAG:  SwiftGif , gif  , Swipe  , Animation , Custom Animation , Objective c , Swift , SwiftUI

Classification:  SwiftGif

Platform:  IOS 

Language:  Swift

Device:
iPhone / iPad

Licence:  MIT

Download

Installation

CocoaPods

Install CocoaPods with the following command:
gem install cocoapods
Integrate SwiftGif into your Xcode project by creating a Podfile:
platform :ios, '9.0'
use_frameworks!

target '' do
    pod 'SwiftGifOrigin', '~> 1.7.0'
end
Run pod install to build your dependencies.

Carthage

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
Run carthage update to build the framework and drag the built SwiftGif.framework into your Xcode project.

Usage

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")

0 Comments: