Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JellyDevelopment/JDSwiftAvatarProgress
Easy customizable avatar image asynchronously with progress bar animated
https://github.com/JellyDevelopment/JDSwiftAvatarProgress
Last synced: about 1 month ago
JSON representation
Easy customizable avatar image asynchronously with progress bar animated
- Host: GitHub
- URL: https://github.com/JellyDevelopment/JDSwiftAvatarProgress
- Owner: JellyDevelopment
- License: mit
- Created: 2015-10-20T09:36:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T09:41:59.000Z (over 8 years ago)
- Last Synced: 2024-11-30T19:17:23.283Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 188 KB
- Stars: 85
- Watchers: 8
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - JDSwiftAvatarProgress - Easy customizable avatar image asynchronously with progress bar animated. (Media / Image)
- awesome-ios-star - JDSwiftAvatarProgress - Easy customizable avatar image asynchronously with progress bar animated. (Media / Image)
README
# JDSwiftAvatarProgress
[![Version](https://img.shields.io/cocoapods/v/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress)
[![License](https://img.shields.io/cocoapods/l/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress)
[![Platform](https://img.shields.io/cocoapods/p/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress)##Objective-C
JDAvatarProgress is available in Objective-C also,
[JDAvatarProgress](https://github.com/JellyDevelopment/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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "JDSwiftAvatarProgress"
```### Manual
Clone the repository:
```bash
$ 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
```swift
self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!)
```
## Advanced Usage
```swift
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 inprint("image => \(image)")
print("error => \(error)")
print("------------------")
})
```## Author
* [Jelly Development](https://github.com/JellyDevelopment)
* Juanpe Catalán, [email protected]
* David Carrascal, [email protected]## License
JDSwiftAvatarProgress is available under the MIT license. See the LICENSE file for more info.