Latest 0.1.3
Homepage https://github.com/kuotinyen/ImageProvider
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

ImageProvider is A handy class that provides UIImage directly.

Use

Define your images like this:

extension ImageKeys {
    static let navMenuIcon = ImageKey(rawValue: "navMenuIcon")
}

Get a UIImage :

imageView.image.image = Images[ImageKeys.navMenuIcon] // way 1
imageView.image = Images.image(ImageKeys.navMenuIcon) // way 2

CocoaPods

target '<Your Target Name>' do
pod 'ImageProvider'
end

Requirements

  • iOS 9.0 or later
  • Swift 4.2
  • Xcode 10

License

ImageProvider is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "ImageProvider",
    "version": "0.1.3",
    "summary": "A handy class that provides UIImage directly.",
    "description": "A handy class that provides UIImage directly.",
    "homepage": "https://github.com/kuotinyen/ImageProvider",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kuotinyen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kuotinyen/ImageProvider.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ImageProvider/Classes/**/*"
}

Pin It on Pinterest

Share This