SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.16k stars 223 forks source link

Nested Lazy V & HStacks #150

Closed ichbinnicht closed 3 years ago

ichbinnicht commented 3 years ago

My layout hierarchy looks like this: ScrollView -> LazyVStack -> several LazyHStacks, each with several WebImages.

When scrolling up and down the scrollview, everything works fine for awhile. However, at random times the placeholder is shown and the actual image is not loaded. If I scroll up and down repeatedly, it appears to fix itself and load the image. I have tried to find the source of this issue, but it happens very randomly & unpredictably.

dreampiggy commented 3 years ago

iOS 14+ behavior. iOS 13 works well.

Using @StateObject will solve this. Release in 2.0.0

dreampiggy commented 3 years ago

Should be solved by v2.0.0