I’m trying to load remote image in widget ui but unfortunately when image downloaded widget body is not called again sometimes to render image but same code works fine regular swiftui project, please let me know if there is any solution to it since it’s release blocker, below is pseudocode sorry i typed from my mobile
Thanks
Struct ContentView: View {
@ObservedObject vat imageLoader: ImageLoader
var body: some view {
Text(some text)
if let image = imageLoader.image {
Image(uiimage: image)
.resizable()
.frame(width:40, height:40)
}
}.onAppear {
imageLoader.load()
}
}
Thanks