What problem does it solve?
This Skill addresses the inefficiencies of standard image loading by implementing robust caching, request deduplication, and optimized loading pipelines, preventing redundant downloads and improving app performance.
Core Features & Use Cases
- Caching: Implements both memory (NSCache) and disk (LRU FileManager) caching to store images locally.
- Deduplication: Ensures that concurrent requests for the same image URL result in only a single download.
- Optimized Loading: Provides a
CachedAsyncImage SwiftUI view as a drop-in replacement for AsyncImage, offering advanced features like prefetching and image processing (resizing, thumbnails).
- Use Case: Integrate this Skill into your app to dramatically speed up image loading in lists and grids, reduce network usage, and provide a smoother user experience, especially when dealing with many images.
Quick Start
Use the image-loading skill to generate a production-ready image loading pipeline with caching and a CachedAsyncImage SwiftUI view.