SDWebImage / SDWebImageSwiftUI

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

[Important changes]Trying to move the initial state setup before `onAppear` to fix the watchOS switching url or any other state issue #316

Closed dreampiggy closed 5 months ago

dreampiggy commented 5 months ago

This maybe a behavior changes, need testing

I have no extra time to test, so just release another patch version and please test this (seems work well on example)

This close https://github.com/SDWebImage/SDWebImageSwiftUI/issues/312 This close #314

And maybe many many other issue which related to the onAppear behavior of SwiftUI.

dreampiggy commented 5 months ago

Hi. @alfredcc

I just remove the platform differences code, in example the issue seems disappeared. But I don't have a real world App to test.

I'll release a patch version (v3.0.4) and you can have a test with this to see the result.