Closed karenxpn closed 3 years ago
Known bug...Move this into #121
SDWebImageSwiftUI current version can not use with LazyStack in iOS 14. I'll investigate this issue soon.
Seems related to the iOS 14's LazyVStack, which will reset the @State
or @Binding
for any item inside him in some situation. Which cause a recursive call to SDWebImageManager
to load image again...
Continue invesgating. Anyone who is expect and know SwiftUI implmentation detail can help with ?
as I understood this can be done with changing NavigationLink to isActive: Bool this solves this issue but its not correct solution I think
the problem is connected somehow with SDWebImageSiwftUI and navigation
@KALIMI Maybe solved by #162. Reason is in #121
Solved by v2.0.0
SDWebImageSwiftUI causes freeze of the app in LazyVStack
this is my code of that part
ScrollView { LazyVStack {
} }
struct PostSingleComment: View { @EnvironmentObject var profileVM: ProfileViewModel @State private var isExpanded: Bool = false let comment: CommentModel let theme: Theme @Binding var toggler: Bool