V8tr / AsyncImage

Asynchronous Image Loading from URL in SwiftUI
https://www.vadimbulavin.com/
The Unlicense
275 stars 36 forks source link

Image Caching is not working. #2

Closed Haibo-Zhou closed 4 years ago

Haibo-Zhou commented 4 years ago

Hello, I run this app on iPhone, it seems that image caching is not worked, as I see that if I force-close the app and reopen it, then images were reloading but not fetch from cache.

V8tr commented 4 years ago

Hi! Yep, that is by design. Image cache is not persisted between app launches. This article seems like a good solution on how to build a disk cache on top of NSCache.