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: ios navbar lifecycle #1331

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: ios navbar lifecycle #1331

wants to merge 1 commit into from

Conversation

rajamatt
Copy link
Contributor

@rajamatt rajamatt commented Jan 31, 2025

GitHub Issue (If applicable): closes #1334

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

iOS NavigationBar lifecycle wasn't handled correctly since on iOS the NavBar is always UnLoaded by default when navigating away.

What is the new behavior?

Added OnLoaded for both iOS and Android NavigationBarPresenter

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@rajamatt rajamatt self-assigned this Jan 31, 2025
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1331.eastus2.azurestaticapps.net

@rajamatt rajamatt requested a review from kazo0 January 31, 2025 23:47
@kazo0 kazo0 linked an issue Feb 3, 2025 that may be closed by this pull request
@rajamatt rajamatt marked this pull request as draft February 3, 2025 18:34
@rajamatt rajamatt marked this pull request as ready for review February 3, 2025 23:53
Copy link

github-actions bot commented Feb 3, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1331.eastus2.azurestaticapps.net

App.WaitForElement("FluentPage3NavBar", "Timed out waiting for Page 3 Nav Bar");

PlatformHelpers.On(
iOS: () => App.Tap(q => q.Marked("FluentPage3NavBar").Descendant("AppCompatImageButton")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work, the AppCompatImageButton is an Android specific type that is used natively.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not as simple on iOS to drill into the native classes then we can use explicit MainCommands for now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really debug this on iOS so I'm not sure what native type I should be getting. I removed this test case for now

@unodevops
Copy link

⚠️⚠️ The build 154057 has failed on Uno Toolkit - CI.

@rajamatt rajamatt force-pushed the dev/mara/fix-ios-navbar branch from cb07916 to 54bd5be Compare February 4, 2025 15:44
Copy link

github-actions bot commented Feb 4, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1331.eastus2.azurestaticapps.net

1 similar comment
Copy link

github-actions bot commented Feb 4, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1331.eastus2.azurestaticapps.net

@unodevops
Copy link

⚠️⚠️ The build 154123 has failed on Uno Toolkit - CI.

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.

[iOS][NavigationBar] MainCommand not closing while in Flyout
3 participants