AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.
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
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.
Version : 3.1.1
Code:
WindowGroup { ContentView() .environment(.urlImageOptions, urlImageOption) .environment(.urlImageService, urlImageService) .environmentObject(modelData) }
TabView(selection: $modelData.selectedTab) { NavigationView{ ScrollView{ Foreach..... url-image }}}