-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Fix] Custom sheet auto dismiss #306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good! I'll spend a bit more time to take a closer look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just initial review. I'll continue on testing the fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good and improves for some use cases. We can continue looking for improving some other cases separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've run test on multiple iOS 15 to 17 iPhones and iPads. The change mitigates the sheet dismissal problem. Though there are still some minor bugs, I think it is good to get this in for now.
Co-authored-by: Ting <tchen@esri.com>
Thank you everyone! |
Description
This PR implements fixes to the following bugs that would occur when using the custom sheet modifier in the sample viewer:
Modifying state during view update, this will cause undefined behavior.
would be thrown.DismissAction
from theEnvironment
wouldn't always re-present.URL to custom sheet modifier file: View+Sheet.swift
Linked Issue(s)
swift/issues/4778
How To Test
Test Code
Display map
sample.