Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.71 KB

README.md

File metadata and controls

62 lines (39 loc) · 1.71 KB

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.