Skip to content

Layout commandBarContainerStackView in CommandBar#2247

Open
joannaquu wants to merge 1 commit intomicrosoft:mainfrom
joannaquu:joannaqu/command-bar-layout
Open

Layout commandBarContainerStackView in CommandBar#2247
joannaquu wants to merge 1 commit intomicrosoft:mainfrom
joannaquu:joannaqu/command-bar-layout

Conversation

@joannaquu
Copy link
Contributor

@joannaquu joannaquu commented Feb 25, 2026

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

In certain edge cases, if commandBarContainerStackView hasn't been laid out, its stale values will be used when calculating the scroll view shadow. (if containerView.frame.width is 0). This will cause the CAGradientLayer to hide the entire command bar, not just the scroll edge.

Make sure we layout commandBarContainerStackView.

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

@joannaquu joannaquu requested a review from a team as a code owner February 25, 2026 16:44
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.

1 participant