Skip to content

m-maaz-ul-haq/KImageView

Repository files navigation

KImageView

CI Status Version License Platform

KImageView is a simple extension to the UIImageView to load images from URL asynchronously.

Installation

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

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

@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 - Alamofire is an HTTP networking library written in Swift.
  • AlamofireImage - AlamofireImage is an image component library for Alamofire.

Author

License

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

About

KImageView loads images from server URL asynchronously to UIImageView.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published