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

Fix unhandled dismissal of iOS modals #3072

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

Axemasta
Copy link
Contributor

@Axemasta Axemasta commented Feb 13, 2024

Description of Change

Added an additional check when PrismNavigationPage is dismissed for the following conditions:

  • Is the page using a non default value for ModalPresentationStyle?
  • Is the navigation source Device?

If both are true, the navigation service will call go back (modal) once, to ensure that the prism navigation service stack matches the true page stack of the maui app.

Bugs Fixed

API Changes

List all API changes here (or just put None), example:

Added:

None

Changed:

None

Behavioral Changes

There should be no behavioural changes

PR Checklist

Currently there are no tests for the change in functionality, I can add them if you think they would be useful

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard

I've updated PrismNavigationPage to check when disspearing if the modalpresentationstyle is not default. If the page disspears when this style is set to non default & the navigation source is device, the page will be cleaned up with an extra go back call.
Added ios as a target & added compiler directive to the workaround
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.

2 participants