contentful-labs / Concorde

Download and decode progressive JPEGs on iOS.
MIT License
1.44k stars 152 forks source link

Add support for caching #10

Closed iheart2code closed 8 years ago

iheart2code commented 9 years ago

Calling the .load method seems to add some significant latency for images that should be cached.

neonichu commented 8 years ago

I think this is out of scope for this project. However, there's a completion handler that is being called once a download has finished (https://github.com/contentful-labs/Concorde/blob/master/Code/CCBufferedImageView.swift#L19), so you should be able to bring in your own caching layer.