pointfreeco / episode-code-samples

💾 Point-Free episode code.
https://www.pointfree.co
MIT License
939 stars 289 forks source link

Episode 109 sheet show twice when item name changed #148

Closed ibcylon closed 6 months ago

ibcylon commented 6 months ago

Episode 109 - sheet shows twice when item name changed and cancel or save button tapped minimum deploy target - 17.0

stephencelis commented 6 months ago

@ibcylon SwiftUI can write to a binding even after it's been niled out, which in this case causes it to re-present. This is a scenario that the resulting swiftui-navigation library works around, but the episode code sample does not :)