Closed byunsangun closed 3 years ago
I saw similar reports in other frameworks. It all depends on the view lifecycle of TabView
subviews – I think it might be broken. I would suggest not calling reset()
as a workaround.
You can add an option to RemoteImageView
to configure the "on disappear" behavior the way I done in LazyImage
.
Hi I'm actually newbie of SwiftUI. I'm trying to implement TabView of image with url. If i use Nuke without TabView, it's working well. I think this error is related with my code because when i remove .onDisappear(perform: image.reset) this part, it's also working well... But i think it's not good solution. Can you check my code? Thank you in advance!!
Nuke Class ` struct RemoteImageView: View {
}
`
Usage