KingfisherExtension base on Kingfisher. Remake image before caching by style.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
KingfisherExtension.xcodeproj
KingfisherExtension
.gitignore
.swift-version
Cartfile
Cartfile.resolved
KingfisherExtension.podspec
LICENSE
README.md

README.md

KingfisherExtension

KingfisherExtension base on Kingfisher. Remake image before caching by style.

Requirements

iOS 8.0

Swift 3.0

Usage

  1. Make your Transformer conform ImageReducible protocol.
  struct Transformer: ImageReducible {
    let URLString: String
    let style: ImageStyle
  }
  1. And, set transformer for your imageView
let round: ImageStyle = .RoundedRectangle(size: CGSize(width: 60.0, height: 60.0), cornerRadius: 16.0, borderWidth: 0)
let transformer = Transformer(URLString: URLString, style: round)
imageView.kfe_setImage(byTransformer: transformer)

Check the demo for more information.

Installation

CocoaPods

pod 'KingfisherExtension', '~> 1.0.1'

Carthage

github "Limon-O-O/KingfisherExtension"

Contact

Contact me on Twitter or Weibo . If you find an issue, just open a ticket on it. Pull requests are warmly welcome as well.

License

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