Skip to content

[CommandBar] Add Glass Styling Support#2267

Merged
cbowdoin merged 10 commits intomicrosoft:mainfrom
cbowdoin:user/cbowdoin/GlassCommandBarSupport
Apr 21, 2026
Merged

[CommandBar] Add Glass Styling Support#2267
cbowdoin merged 10 commits intomicrosoft:mainfrom
cbowdoin:user/cbowdoin/GlassCommandBarSupport

Conversation

@cbowdoin
Copy link
Copy Markdown
Contributor

@cbowdoin cbowdoin commented Apr 20, 2026

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

Introduces a new CommmandBarStyle .primary and .glass to style the CommandBar using UIGlassEffect on iOS26 and UIBlurEffect on older OS. The styling also adjust the shadows to match the glass style.

Change also includes a minor bug fix to the corner radius calculation so we get full half circles in command bars that try and layout below the safe area which previously could be seen in the DemoController Accessaory Input View when the soft keyboard was not showing

Binary change

(how is our binary size impacted -- see https://github.com/microsoft/fluentui-apple/wiki/Size-Comparison)

Verification

(how the change was tested, including both manual and automated tests)

Visual Verification
Before After
image image

Pull request checklist

This PR has considered:

  • iOS supported versions (all major versions greater than or equal current target deployment version)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
  • Objective-C exposure (provide it only if needed)
Microsoft Reviewers: Open in CodeFlow

@cbowdoin cbowdoin requested a review from a team as a code owner April 20, 2026 21:20
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift Outdated
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift Outdated
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBarTokenSet.swift Outdated
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBarTokenSet.swift
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift Outdated
Comment thread Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift Outdated
@cbowdoin cbowdoin enabled auto-merge (squash) April 21, 2026 21:04
@cbowdoin cbowdoin merged commit cda59b9 into microsoft:main Apr 21, 2026
7 checks passed
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.

3 participants