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

Tab Bar View can hide separator and disable blur effect #2119

Merged
merged 7 commits into from
Jan 22, 2025

Conversation

cbowdoin
Copy link
Contributor

@cbowdoin cbowdoin commented Jan 17, 2025

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

Consumers have no way currently to control the separator and blur effect created by the tab bar view. This PR adds the ability to specify in the init that you want to disable either/both the separator or the blur effect. We do not apply any effect to the background view if the blur effect is disabled. If the separator is disabled we will set the hidden property on the separator view to true.

Tab Bar View demo app has the incrementor on the right and decrementor on the left to match LTR design patterns.
Additionally, it now has toggles for the control of the separator and blur effect.

Binary change

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

Verification

  • Built objective c projects that use Tab Bar View
  • Tab Bar View can be seen with no separator and blur effect in the demo controller.
Visual Verification
Before After
TabBarViewDefault TabBarViewNoBlurNoDivider
image image

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

@cbowdoin cbowdoin requested a review from a team as a code owner January 17, 2025 21:25
@nodes11
Copy link
Contributor

nodes11 commented Jan 21, 2025

A video demonstrating the updates to the demo controller should be added to the visual verification section.

@cbowdoin cbowdoin merged commit 1dfcb5f into microsoft:main Jan 22, 2025
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