Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirohisa/ImageLoaderSwift
A lightweight and fast image loader for iOS written in Swift.
https://github.com/hirohisa/ImageLoaderSwift
carthage cocoapods imageloader swift uiimageview xcode
Last synced: 3 months ago
JSON representation
A lightweight and fast image loader for iOS written in Swift.
- Host: GitHub
- URL: https://github.com/hirohisa/ImageLoaderSwift
- Owner: hirohisa
- License: mit
- Created: 2014-10-23T12:26:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T07:35:48.000Z (over 5 years ago)
- Last Synced: 2024-08-06T12:54:11.775Z (3 months ago)
- Topics: carthage, cocoapods, imageloader, swift, uiimageview, xcode
- Language: Swift
- Homepage:
- Size: 379 KB
- Stars: 292
- Watchers: 13
- Forks: 37
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ImageLoaderSwift - A lightweight and fast image loader for iOS written in Swift. (Media / Image)
- awesome-swift - ImageLoader - A lightweight and fast image loader for iOS. (Libs / Images)
- awesome-swift - ImageLoader - A lightweight and fast image loader for iOS. (Libs / Images)
- awesome-ios-star - ImageLoaderSwift - A lightweight and fast image loader for iOS written in Swift. (Media / Image)
- fucking-awesome-swift - ImageLoader - A lightweight and fast image loader for iOS. (Libs / Images)
- awesome-swift-cn - ImageLoader - A lightweight and fast image loader for iOS written in Swift. (Libs / Images)
- awesome-swift - ImageLoader - A lightweight and fast image loader for iOS written in Swift. ` 📝 2 years ago ` (Images [🔝](#readme))
README
ImageLoader
=======
[![Build-Status](https://api.travis-ci.org/hirohisa/ImageLoaderSwift.svg?branch=master)](https://travis-ci.org/hirohisa/ImageLoaderSwift)
[![CocoaPods](https://img.shields.io/cocoapods/v/ImageLoader.svg)](https://cocoapods.org/pods/ImageLoader)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![codecov.io](https://codecov.io/github/hirohisa/ImageLoaderSwift/coverage.svg?branch=master)](https://codecov.io/github/hirohisa/ImageLoaderSwift?branch=master)
[![license](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/hirohisa/ImageLoaderSwift/blob/master/LICENSE)ImageLoader is an instrument for asynchronous image loading written in Swift. It is a lightweight and fast image loader for iOS.
Features
----------- [x] Simple methods with UIImageView Category.
- [x] Control Loader to resume, suspend and cancel with URL.
- [x] A module for cache can be set by yourself and default cache (Disk) uses disk spaces and un-uses memory.
- [x] Loading images is handled by ImageLoader, not UIImageView.
- [x] After image view start loading another image, previous loading task is possible to live with caching.
- [x] Support `NSURL`, `String` and `NSURLComponents` by `URLLiteralConvertible`
- [ ] Optimize to use memory when image is set.
- [x] Support image type .jpeg, .png
- [x] Comprehensive Unit Test CoverageRequirements
----------- iOS 8.0+
- Xcode 7.0+ Swift 2.0ImageLoader | Xcode | Swift
----------- | ----- | -----
0.13.+ | 9.0+ | 4.0
0.12.+ | 8.1+ | 3.0
0.11.+ | 8.0+ | 3.0
0.10.0 | 8.0+ | 2.3
0.9.x | 7.3.1 | 2.2If your project's target need to support iOS5.x or 6.x, use [ImageLoader](https://github.com/hirohisa/ImageLoader). It's A lightweight and fast image loader for iOS written in Objective-C.
Installation
----------### CocoaPods
```ruby
pod 'ImageLoader'
```### Carthage
To integrate ImageLoader into your Xcode project using Carthage, specify it in your `Cartfile`:
```
github "hirohisa/ImageLoaderSwift" ~> 0.6.0
```Usage
----------#### ImageLoader
**load**
```swift
ImageLoader.request(with: url, onCompletion: { _ in })
```#### UIImageView
```swift
imageView.load.request(with: url)
```or
```swift
imageView.load.request(with: url, onCompletion: { _ in })
```## License
ImageLoader is available under the MIT license.