Skip to content

Files

Latest commit

author
David López
Oct 20, 2015
1c7ca53 · Oct 20, 2015

History

History
75 lines (48 loc) · 2.24 KB

README.md

File metadata and controls

75 lines (48 loc) · 2.24 KB

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.