https://github.com/m-maaz-ul-haq/kimageview
KImageView loads images from server URL asynchronously to UIImageView.
https://github.com/m-maaz-ul-haq/kimageview
ios swift3 uiimageview uiimageview-extension
Last synced: 30 days ago
JSON representation
KImageView loads images from server URL asynchronously to UIImageView.
- Host: GitHub
- URL: https://github.com/m-maaz-ul-haq/kimageview
- Owner: m-maaz-ul-haq
- License: mit
- Created: 2017-03-03T10:39:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T20:49:03.000Z (almost 6 years ago)
- Last Synced: 2025-04-13T14:07:38.344Z (30 days ago)
- Topics: ios, swift3, uiimageview, uiimageview-extension
- Language: Swift
- Homepage:
- Size: 273 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KImageView
[](https://travis-ci.org/m-maaz-ul-haq/KImageView)
[](http://cocoapods.org/pods/KImageView)
[](http://cocoapods.org/pods/KImageView)
[](http://cocoapods.org/pods/KImageView)KImageView is a simple extension to the UIImageView to load images from URL asynchronously.

## Installation
KImageView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'KImageView'
```## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## How to use
Declare an UIImageView IBOutlet
```ruby@IBOutlet weak var imageView: UIImageView!
self.imageView.imageFromURL(url: "http://www.cartoon-clipart.co/amp/images/scooby-doo.png", indicatorColor: .gray, errorImage: UIImage(named: "replaceWithErrorImage")!)
```
That's it.## Built With
* [Alamofire](https://github.com/Alamofire/Alamofire/) - Alamofire is an HTTP networking library written in Swift.
* [AlamofireImage](https://github.com/Alamofire/AlamofireImage/) - AlamofireImage is an image component library for Alamofire.## Author
* **[Muhammad Maaz Ul Haq](mailto:[email protected])**## License
KImageView is available under the MIT license. See the LICENSE file for more info.