Skip to content
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

Workaround for BindingAction existential layout crash #1881

Merged
merged 4 commits into from
Jan 30, 2023

Conversation

stephencelis
Copy link
Member

This PR will address the crash found in #1877. The fact that BindingAction holds onto an Any existential directly means that attempting to extract another action from an enum that holds a BindingAction can lead to crashes in release mode depending on the layout.

This Swift bug is fixed in Swift 5.8, but we will need to provide a workaround.

Will start by pushing a test case to verify the crash on CI, then will push a workaround that boxes the existential in < 5.8.

@stephencelis stephencelis added the apple bug Something isn't working due to a bug on Apple's platforms. label Jan 30, 2023
@stephencelis stephencelis merged commit c330496 into main Jan 30, 2023
@stephencelis stephencelis deleted the binding-action-layout-bug branch January 30, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple bug Something isn't working due to a bug on Apple's platforms.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants