Skip to content

Commit 0dcfd55

Browse files
authored
Delete MultilineCommandBar (#2261)
1 parent e596085 commit 0dcfd55

5 files changed

Lines changed: 0 additions & 219 deletions

File tree

MicrosoftFluentUI.podspec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ fi', :execution_position => :before_compile }
200200
listitem_ios.source_files = ["#{ios_root}/#{components_dir}/List/**/*.swift"]
201201
end
202202

203-
s.subspec 'MultilineCommandBar_ios' do |multilinecommandbar_ios|
204-
multilinecommandbar_ios.platform = :ios
205-
multilinecommandbar_ios.dependency "#{s.name}/BottomSheet_ios"
206-
multilinecommandbar_ios.dependency "#{s.name}/CommandBar_ios"
207-
multilinecommandbar_ios.dependency "#{s.name}/Core_ios"
208-
multilinecommandbar_ios.source_files = ["#{ios_root}/#{components_dir}/MultilineCommandBar/**/*.{swift,h}"]
209-
end
210-
211203
s.subspec 'Navigation_ios' do |navigation_ios|
212204
navigation_ios.platform = :ios
213205
navigation_ios.dependency "#{s.name}/ActivityIndicator_ios"

Sources/FluentUI_iOS/Components/CommandBar/CommandBar.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,6 @@ public class CommandBar: UIView, Shadowable, TokenizedControl {
229229
didSet {
230230
updateViewHierarchy()
231231
updateMainCommandGroupsViewConstraints()
232-
if !isScrollable {
233-
mainCommandGroupsView.equalWidthGroups = true
234-
}
235-
}
236-
}
237-
238-
/// Whether or not the `CommandBar` scrollable content is centered in its container
239-
public var isScrollableContentCentered: Bool = false {
240-
didSet {
241-
if isScrollable {
242-
updateMainCommandGroupsViewConstraints()
243-
}
244232
}
245233
}
246234

@@ -388,11 +376,6 @@ public class CommandBar: UIView, Shadowable, TokenizedControl {
388376
mainCommandGroupsView.bottomAnchor.constraint(equalTo: scrollView.contentLayoutGuide.bottomAnchor),
389377
mainCommandGroupsView.leadingAnchor.constraint(greaterThanOrEqualTo: scrollView.leadingAnchor)
390378
]
391-
392-
if isScrollableContentCentered {
393-
let centerConstraint = mainCommandGroupsView.centerXAnchor.constraint(greaterThanOrEqualTo: scrollView.centerXAnchor)
394-
mainCommandGroupsViewConstraints.append(centerConstraint)
395-
}
396379
} else {
397380
mainCommandGroupsViewConstraints = [
398381
mainCommandGroupsView.topAnchor.constraint(equalTo: containerView.topAnchor),

Sources/FluentUI_iOS/Components/CommandBar/CommandBarButtonGroupView.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ class CommandBarButtonGroupView: UIView {
4545
isHidden = allViewsHidden
4646
}
4747

48-
var equalWidthButtons: Bool = false {
49-
didSet {
50-
stackView.distribution = equalWidthButtons ? .fillEqually : .fill
51-
}
52-
}
53-
5448
private lazy var stackView: UIStackView = {
5549
let stackView = UIStackView(arrangedSubviews: buttons)
5650
stackView.translatesAutoresizingMaskIntoConstraints = false

Sources/FluentUI_iOS/Components/CommandBar/CommandBarCommandGroupsView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class CommandBarCommandGroupsView: UIView {
9696

9797
updateButtonGroupViews()
9898
for (index, view) in buttonGroupViews.enumerated() {
99-
view.equalWidthButtons = equalWidthGroups
10099
buttonGroupsStackView.addArrangedSubview(view)
101100

102101
if index < buttonGroupViews.count - 1 {
@@ -133,12 +132,6 @@ class CommandBarCommandGroupsView: UIView {
133132
return itemsToButtonsMap[item]
134133
}
135134

136-
var equalWidthGroups: Bool = false {
137-
didSet {
138-
buttonGroupsStackView.distribution = equalWidthGroups ? .fillEqually : .fill
139-
}
140-
}
141-
142135
// MARK: - Private properties
143136

144137
private var buttonGroupsStackView: UIStackView

Sources/FluentUI_iOS/Components/MultilineCommandBar/MultilineCommandBar.swift

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)