Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.
/ Flycatcher Public archive

iOS asynchronous image loader with caching written in Swift

License

Notifications You must be signed in to change notification settings

enricode/Flycatcher

Repository files navigation

Flycatcher

Flycatcher is an asyncronus image loader with caching written in Swift.

This sofware is still in development, feel free to contribute

How it works

Using manager for load

let manager = Flycatcher.downloader()
manager.load("http://www.example.com/happy_image.jpg", completion: { result in
  let image = UIImage(data: result.resource.resourceData!)
  // do whatever you want
})

Using UIImageView extension

let imageView = UIImageView
imageView.setAsyncImage("http://www.example.com/happy_image.jpg")

Using manager for preload

let manager = Flycatcher.downloader()
manager.preload(
  [
    "http://www.example.com/happy_image.jpg",
    "http://www.example.com/sad_image.jpg",
    "http://www.example.com/angry_image.jpg"
  ]
)

...
// the image is already cached
imageView.setAsyncImage("http://www.example.com/happy_image.jpg")

About

iOS asynchronous image loader with caching written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published