image-loading

Cache images in memory and disk with deduplication for SwiftUI views.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/venomez-viper/PathWise --skill image-loading-venomez-viper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-loading
Source: https://github.com/venomez-viper/PathWise/tree/main/.claude/skills/generators/image-loading
Command: npx skills add https://github.com/venomez-viper/PathWise --skill image-loading-venomez-viper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a production-ready image loading solution that caches images in memory and on disk, deduplicates concurrent requests, and offers a drop-in SwiftUI view for cached loading.

Core Features & Use Cases

  • Memory and disk caching: fast retrieval and offline support.
  • Request deduplication: prevents multiple downloads for the same URL.
  • Drop-in UI: CachedAsyncImage replaces AsyncImage in SwiftUI lists and grids.
  • Optional processing: supports resizing and thumbnail generation for efficient rendering.
  • Prefetching and placeholders: improves scroll performance with prefetching and placeholder states.

Quick Start

Embed CachedAsyncImage in your SwiftUI views to replace AsyncImage and enable caching.

Frequently Asked Questions about image-loading

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache and load images instantly in SwiftUI lists and grids?

To cache and load images instantly in SwiftUI, replace AsyncImage with a drop-in CachedAsyncImage view that orchestrates memory and disk storage, deduplicates concurrent requests, and supports prefetching for smooth scrolling.

What is the best way to prevent duplicate image downloads for the same URL in SwiftUI?

The best way to prevent duplicate image downloads in SwiftUI is using an ImagePipeline orchestrator that deduplicates concurrent requests, ensuring only one network call fires per URL while distributing the result to all waiting views.

Can I use a cached AsyncImage view for offline support in SwiftUI apps?

Yes, you can use a cached AsyncImage view for offline support. By persisting downloaded images to disk, the view retrieves and displays them from the local cache when the network is unavailable.

Why does scrolling stutter when loading many images in a SwiftUI grid?

Scrolling stutters when loading many images because standard AsyncImage lacks memory caching and prefetching. An ImagePipeline with memory caching and prefetching capabilities retrieves images instantly without blocking the main thread.

How do I add image processing like resizing for efficient rendering in SwiftUI?

To add image processing like resizing in SwiftUI, configure the ImagePipeline with optional processing steps. This generates thumbnails and resizes images before caching, ensuring efficient rendering in lists and grids.