Vulcan is an open source Swift library from Jin Sasaki that simplifies image downloading with built-in support for multi-image downloading, image caching.
In addition to multiple downloads and caching Vulcan also adds support for the WebP image format for extremely small image file sizes.
This snippet from the readme shows how to perform image downloading:
// Single downloading
imageView.vl_setImage(url: URL(string: "/path/to/image")!)
// Multi downloading
// This image will be overridden by the image of higher priority URL.
imageView.vl_setImage(urls: [
.url(URL(string: "/path/to/image")!, priority: 100),
.url(URL(string: "/path/to/image")!, priority: 1000)
])
You can find Vulcan on Github here.
A nice pure Swift library for image downloading.
Original article: Vulcan – Easy Swift Image Downloading With Built In Caching, Multi-Download Support, And More
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools