johnpatrickmorgan / FlowStacks

FlowStacks allows you to hoist SwiftUI navigation and presentation state into a Coordinator
MIT License
783 stars 56 forks source link

Xcode 14 beta 5, iOS 16, various warnings about publishing updates within view updates #43

Open ConfusedVorlon opened 1 year ago

ConfusedVorlon commented 1 year ago

If I switch to the XCode beta, I see frequent warnings like this

Screenshot 2022-08-14 at 11 22 53

I'm not familiar enough with the logic to know whether you can just dispatch to main for writes here...

I love the project - thank you :)

ConfusedVorlon commented 1 year ago

ps - if you don't see this in a sample project (e.g. when pushing / popping screens), then let me know and I'll try to generate a minimal example.

DavidKmn commented 1 year ago

@johnpatrickmorgan Have you looked into this much?

johnpatrickmorgan commented 1 year ago

I haven't tested yet but I wonder if this message no longer shows in the latest Xcode 14.1 beta: https://www.donnywals.com/xcode-14-publishing-changes-from-within-view-updates-is-not-allowed-this-will-cause-undefined-behavior/.