Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()
}
Expand Down
Loading