dmytro-anokhin / url-image

AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.
MIT License
1.1k stars 96 forks source link

Even if the cache is used, the images will be reloaded in tabview #163

Open AntoniotheFuture opened 2 years ago

AntoniotheFuture commented 2 years ago

Hi! I use url-image in a tabview, but even if the cache is used, when I switch between tabs, the images will still be reload.

WindowGroup { ContentView() .environment(.urlImageOptions, urlImageOption) .environment(.urlImageService, urlImageService) .environmentObject(modelData) }

TabView(selection: $modelData.selectedTab) { NavigationView{ ScrollView{ Foreach..... url-image }}}

jojost1 commented 1 year ago

Hey, did you ever figure this out? I can't figure out how to configure a working cache with v3.0.