Latest 1.0.1
Homepage https://github.com/Limon-O-O/KingfisherExtension
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher
Authors



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
    }
  2. 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.

Latest podspec

{
    "name": "KingfisherExtension",
    "version": "1.0.1",
    "summary": "Kingfisher Extension",
    "description": "KingfisherExtension base on Kingfisher. Remake image before caching by style.",
    "homepage": "https://github.com/Limon-O-O/KingfisherExtension",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Limon": "[email protected]"
    },
    "social_media_url": "https://twitter.com/Limon______",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Limon-O-O/KingfisherExtension.git",
        "tag": "1.0.1"
    },
    "source_files": "KingfisherExtension/*.swift",
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This