Skip to content

JellyDevelopment/JDSwiftAvatarProgress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Easy customizable avatar image asynchronously with progress bar animated

Resources

License

Stars

Watchers

Forks

Packages

No packages published