Easy customizable avatar image asynchronously with progress bar animated
Switch branches/tags
Clone or download
Latest commit 3f38937 May 4, 2016
Permalink
Failed to load latest commit information.
Example New version Oct 20, 2015
Pod First commit Oct 20, 2015
.gitignore Initial commit Oct 20, 2015
.travis.yml Initial commit Oct 20, 2015
JDSwiftAvatarProgress.podspec New version Oct 20, 2015
LICENSE Update LICENSE May 4, 2016
README.md Change readme file Oct 20, 2015
_Pods.xcodeproj Initial commit Oct 20, 2015

README.md

JDSwiftAvatarProgress

Version License Platform

##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.