Latest 0.1.0
Homepage https://github.com/ibhupi/UIImageViewNetwork
License MIT
Platforms ios 9.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Bhupendra Singh/UIImageViewNetwork.svg?style=flat)](https://travis-ci.org/Bhupendra Singh/UIImageViewNetwork)
Version
License
Platform

Summary

UIImageViewNetwork is easy to use Swift UIImageView extension to download image from network asynchronously in background thread.

UIImageViewNetwork also safe to use in CollectionViews and TableViews because it ignores downloading image if new url is used for image. In reuseable collection view and table view cells it first checks wheather downloaded image url is same as recent URL or not. Ignore if downloaded image url is different than recent URL.

UIImageViewNetwork also caches downloaded image to reuse. Default cache limit is 100 images. But can be easily customizable.
TODO: Further improvement in image caching and purging for memory warnings.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.


UIImageView().errorImage = UIImage(named: "ErrorImage")
UIImageView().setImageFromUrl("https://developer.apple.com/assets/elements/icons/128x128/swift_2x.png");

Requirements

Installation

UIImageViewNetwork is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "UIImageViewNetwork"

Author

Bhupendra Singh, [email protected]

License

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

Latest podspec

{
    "name": "UIImageViewNetwork",
    "version": "0.1.0",
    "summary": "UIImageViewNetwork is Swift extension of UIImageView to download image from server asynchronously.",
    "description": "n                      UIImageViewNetwork is easy to use Swift UIImageView extension to download image from network asynchronously in background thred. n                      UIImageViewNetwork also caches downloaded image to reuse. n                      Purge cached images for memory warning.  nn",
    "homepage": "https://github.com/ibhupi/UIImageViewNetwork",
    "license": "MIT",
    "authors": {
        "Bhupendra Singh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ibhupi/UIImageViewNetwork.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/ibhupi",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "UIImageViewNetwork/Classes/**/*"
}

Pin It on Pinterest

Share This