Skip to content

Revert #1784: Resolve binding key path crash #1799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2023
Merged

Conversation

stephencelis
Copy link
Member

While #1784 manages to work around a longstanding bug in SwiftUI, it unfortunately seems to introduce another one, as found in #1798. In the interest of addressing this regression with a patch release, let's revert things and re-evaluate if the problem is fixable.

@barabashd If you'd like to explore a fix that manages to avoid the crash in #1798, please let us know what you find! As for the original crash you encountered, it was mainly due to what we believe is a bug in Apple's SwiftUI framework. We actually provide a tool to work around this bug, called ForEachStore, which allows you to compose into an array of features in a fashion similar to the ad hoc approach you took in your demo app.

Fixes #1798.

@stephencelis stephencelis requested a review from mbrandonw January 6, 2023 15:52
@stephencelis stephencelis merged commit cbf8a45 into main Jan 6, 2023
@stephencelis stephencelis deleted the revert-1784 branch January 6, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ViewStore binding provided as NavigationStack path gives fatal error on back navigation with 0.48.0, not 0.47.2
2 participants