Acorn helps to download and cache Image.
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 13.0+
Acorn is available through CocoaPods. To install it, simply add the following line to your Podfile:
Pod 'Acorn'
imageView.setImage(with: url)
- Placeholder
imageView.setImage(with: url, placeholder: UIImage(named: "placeholderImage")
- Configuration
- maximumMemoryBytes
- maximumDiskBytes
- expiration: seconds, days, date
AcornManager.shared.configureCache(maximumMemoryBytes: 10485760,
maximumDiskBytes: 10485760,
expiration: .days(7))
So Yeong Jeon, [email protected]
Acorn is available under the MIT license. See the LICENSE file for more info.