A lightweight generic cache for iOS written in Swift with extra love for images
What is HanekeSwift?
Haneke is a lightweight generic cache for iOS and tvOS written in Swift 4. It’s designed to be super-simple to use.
Features:
- Generic cache with out-of-the-box support for UIImage, NSData, JSON and String
- First-level memory cache using NSCache
- Second-level LRU disk cache using the file system
- Asynchronous fetching of original values from network or disk
- All disk access is performed in background
- Thread-safe
- Automatic cache eviction on memory warnings or disk capacity reached
- Comprehensive unit tests
- Extensible by defining custom formats, supporting additional types or implementing custom fetchers
For images:
- Zero-config UIImageView and UIButton extensions to use the cache, optimized for UITableView and UICollectionView cell reuse
- Background image resizing and decompression
Overview
- Pricing: Free
- Resource Link: https://github.com/Haneke/HanekeSwift
- Resource Maker: Haneke
- Mobile Platform Destination: iOS Apps
- Mobile Platform Support: Native iOS
- Programming Languages: Swift
- iOS Versions Supported: iOS 8.0+, iOS 9.0+, iOS 10.0+, iOS 11.0+, iOS 12.0+
- CocoaPods: HanekeSwift
- Carthage: Haneke/HanekeSwift
The team behind mobintouch
Website: https://www.mobintouch.com
Resources added 👉 3142
Related resources
CatCrypto
An easy way for hashing and encryption
StorageKit
Your Data Storage Troubleshooter
BBLocationManager
A Location Manager for easily implementing location services & geofencing in iOS