From 00b13c0b51491da6d9461434b827876f17d33596 Mon Sep 17 00:00:00 2001 From: Joanna Qu <55368679+joannaquu@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:28:02 -0500 Subject: [PATCH] add clipstobounds --- Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift b/Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift index 299cd9ea6..faf496872 100644 --- a/Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift +++ b/Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift @@ -99,6 +99,7 @@ public class CommandBar: UIView, Shadowable, TokenizedControl { commandBarContainerStackView.axis = .horizontal commandBarContainerStackView.translatesAutoresizingMaskIntoConstraints = false commandBarContainerStackView.isLayoutMarginsRelativeArrangement = true + commandBarContainerStackView.clipsToBounds = true super.init(frame: .zero) @@ -151,7 +152,10 @@ public class CommandBar: UIView, Shadowable, TokenizedControl { public override func layoutSubviews() { super.layoutSubviews() - layer.cornerRadius = bounds.height / 2 + let cornerRadius = bounds.height / 2 + layer.cornerRadius = cornerRadius + commandBarContainerStackView.layer.cornerRadius = cornerRadius + updateShadow() updateScrollViewShadow() }