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

[NavigationBar] Fixing NavBar style during willMove(toWindow:) #2102

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

DanielMorM
Copy link
Contributor

@DanielMorM DanielMorM commented Nov 1, 2024

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

In willMove(toWindow:), we call updateColors(for:) with the wrong NavigationItem. Let's make sure we get the correct one by calling (actualStyleAndItem(for:)

Verification

Navigation bar style is applied correctly in willMove(toWindow:)

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • iOS supported versions (all major versions greater than or equal current target deployment version)
  • VoiceOver and Keyboard Accessibility
  • Internationalization and Right to Left layouts
  • Different resolutions (1x, 2x, 3x)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
  • iPad Pointer interaction
  • SwiftUI consumption (validation or new demo scenarios needed)
  • Objective-C exposure (provide it only if needed)
Microsoft Reviewers: Open in CodeFlow

@DanielMorM DanielMorM requested a review from a team as a code owner November 1, 2024 17:55
@DanielMorM DanielMorM merged commit 7b48bf1 into main Nov 1, 2024
7 checks passed
@DanielMorM DanielMorM deleted the user/damoral/navigationBar-style-fix branch November 1, 2024 20:09
@joannaquu joannaquu mentioned this pull request Nov 21, 2024
12 tasks
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