Since 3.0.0 WebImage is not able to update its URL on v2.2.7 <video src="https://github.com/SDWebImage/SDWebImageSwiftUI/assets/10015557/85b72f98-5ec6-4322-b5a2-79f31b90e04b"> on v3.0.0 <video src="https://github.com/SDWebImage/SDWebImageSwiftUI/assets/10015557/ea0aad65-9539-4b65-923a-1ae2e6f5503a"> Full code ```swift struct ContentView: View { @State var isOn = false var url: URL? { if isOn { .init(string: "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Google_%22G%22_logo.svg/1024px-Google_%22G%22_logo.svg.png") } else { nil } } var body: some View { VStack { WebImage(url: url) .resizable() .scaledToFit() .frame(width: 50, height: 50) Button("Toggle") { isOn.toggle() } } } } ``` I found a workaround by setting `.id(url)` but I don't think this is optimized
Since 3.0.0 WebImage is not able to update its URL
on v2.2.7
Screen.Recording.2024-03-16.at.03.12.07.mov
on v3.0.0
Screen.Recording.2024-03-16.at.03.16.16.mov
Full code
I found a workaround by setting
.id(url)but I don't think this is optimized