Home

Awesome

JDSwiftAvatarProgress

Version License Platform

<img src="https://raw.githubusercontent.com/JellyDevelopment/JDAvatarProgress/master/JDAvatarProgressDemo.gif" width=320>

##Objective-C

JDAvatarProgress is available in Objective-C also,

JDAvatarProgress

Usage

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

Installation

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

pod "JDSwiftAvatarProgress"

Manual

Clone the repository:

$ git clone https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git

Drag and drop JDAvatarProgress.swift file into your project. Add import JDSwiftAvatarProgress to all view controllers that need to use it.

Requirements

QuartzCore.framework

Sample Usage


self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!)

Advanced Usage

self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!,
    placeholder: nil,
    progressBarColor: UIColor.orangeColor(),
    progressBarLineWidth: JDAvatarDefaultProgressBarLineWidth,
    borderColor:nil,
    borderWidth: JDAvatarDefaultBorderWidth,
    completion: { (image, error) -> Void in

    print("image => \(image)")
    print("error => \(error)")
    print("------------------")
})

Author

License

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