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

Enhance Presenter Proxy #13

Closed

Conversation

couchdeveloper
Copy link

Before this change, a "SheetHost" view controller might not be presented
if the presenter already presented another view controller. This might
have happened when a sheet will be presented due to a state change
originating from an app state, rather from a user intent, and when there
is already a presented view or a presented alert.

This change walks the presented view controller list until it finds a
view controller which has no presented view controller and uses this as
the presenter. As a result, a sheet now presents on top of any other
presented view, even on top of alerts.

Andreas Grosam added 2 commits July 6, 2022 17:46
Before this change, a "SheetHost" view controller might not be presented
if the presenter already presented another view controller. This might
have happened when a sheet will be presented due to a state change
originating from an app state, rather from a user intent, and when there
is already a presented view or a presented alert.

This change walks the presented view controller list until it finds a
view controller which has no presented view controller and uses this as
the presenter. As a result, a sheet now presents on top of any other
presented view, even on top of alerts.
@couchdeveloper couchdeveloper deleted the ag/enhancePresenterProxy branch July 6, 2022 16:45
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.

None yet

1 participant