The purpose of the library is to abstract the downloading (images, pdf, zip, etc) and caching of remote resources (images, JSON, XML, etc) so that client code can easily "swap" a URL for any kind of files ( JSON, XML, etc) without worrying about any of the details.
-
= iOS 8.0 .
- Using Blocks
- Async Load Data
- Async Load Images
- Can be used Directly with UIImageView
- Using load More.
- Nice UI and Animations
use it via Pods
pod 'AsyncDownloader', :git => 'https://github.com/YahiaRagae/AyncDownloader'
Confgiure Max Cache & Ignore/Use cached Data
AsyncDownloader.Configure(ConfigBuilder{builder in
builder.maxCacheMemory = 50
builder.isIgnoreCaching = false
})
Fetch Get URL
let requestConfig : RequestConfig = RequestConfig{ builder in
builder.link = "https://api.pinterest.com/v3/pidgets/boards/naturallife/road-trip/pins/"
builder.loadingMessage = "Loading"
builder.isShowLoadingView = true
builder.loadindView = view
}
Async Load Image
cell.imageView.AsyncloadImage(url!)
- Singletone { AsyncDownloader , OnlineController }
- Builder { ConfigBuilders }
- [JGProgressHUD] ( https://github.com/JonasGessner/JGProgressHUD )
- [SwiftyJSON] ( https://github.com/SwiftyJSON/SwiftyJSON )