Skip to content

Commit cb03e75

Browse files
authored
Deprecate MultilineCommandBar (#2223)
1 parent c536636 commit cb03e75

8 files changed

Lines changed: 2 additions & 305 deletions

File tree

Demos/FluentUIDemo_iOS/FluentUI.Demo.xcodeproj/project.pbxproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
3A83F90F2953BB4000EF6629 /* TypographyTokensTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A83F90E2953BB4000EF6629 /* TypographyTokensTest.swift */; };
5353
3AA92B69298DD958001C0464 /* AliasColorTokensTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AA92B68298DD958001C0464 /* AliasColorTokensTest.swift */; };
5454
3AA92B6B298DD96F001C0464 /* ShadowTokensTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AA92B6A298DD96F001C0464 /* ShadowTokensTest.swift */; };
55-
3AC1024C29DB969D002BF27E /* MultilineCommandBarTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AC1024B29DB969D002BF27E /* MultilineCommandBarTest.swift */; };
56-
3ADA2E1D29C515890020434A /* MultilineCommandBarDemoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3ADA2E1C29C515890020434A /* MultilineCommandBarDemoController.swift */; };
5755
43488C4A270FB7E800124C71 /* NotificationViewDemoController_SwiftUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43488C49270FB7E800124C71 /* NotificationViewDemoController_SwiftUI.swift */; };
5856
497DC2DE24185896008D86F8 /* PillButtonBarDemoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 497DC2DD24185896008D86F8 /* PillButtonBarDemoController.swift */; };
5957
5303259326B3198A00611D05 /* AvatarDemoController_SwiftUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5303259226B3198A00611D05 /* AvatarDemoController_SwiftUI.swift */; };
@@ -202,8 +200,6 @@
202200
3A83F90E2953BB4000EF6629 /* TypographyTokensTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypographyTokensTest.swift; sourceTree = "<group>"; };
203201
3AA92B68298DD958001C0464 /* AliasColorTokensTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AliasColorTokensTest.swift; sourceTree = "<group>"; };
204202
3AA92B6A298DD96F001C0464 /* ShadowTokensTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadowTokensTest.swift; sourceTree = "<group>"; };
205-
3AC1024B29DB969D002BF27E /* MultilineCommandBarTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultilineCommandBarTest.swift; sourceTree = "<group>"; };
206-
3ADA2E1C29C515890020434A /* MultilineCommandBarDemoController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultilineCommandBarDemoController.swift; sourceTree = "<group>"; };
207203
43488C49270FB7E800124C71 /* NotificationViewDemoController_SwiftUI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NotificationViewDemoController_SwiftUI.swift; sourceTree = "<group>"; };
208204
497DC2DD24185896008D86F8 /* PillButtonBarDemoController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PillButtonBarDemoController.swift; sourceTree = "<group>"; };
209205
5303259226B3198A00611D05 /* AvatarDemoController_SwiftUI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AvatarDemoController_SwiftUI.swift; sourceTree = "<group>"; };
@@ -388,7 +384,6 @@
388384
3A83F8E42953B9B800EF6629 /* LabelTest.swift */,
389385
F30B74392A7DB7EC000F63A0 /* ListActionItemTest.swift */,
390386
F3DFD3622A7C358000014C6E /* ListItemTest.swift */,
391-
3AC1024B29DB969D002BF27E /* MultilineCommandBarTest.swift */,
392387
3A83F8E62953B9D100EF6629 /* NavigationControllerTest.swift */,
393388
3A83F8E82953BA4500EF6629 /* NotificationViewTest.swift */,
394389
3A83F8EA2953BA5400EF6629 /* NotificationViewTest_SwiftUI.swift */,
@@ -551,7 +546,6 @@
551546
F30B74372A7DB177000F63A0 /* ListActionItemDemoController_SwiftUI.swift */,
552547
F362C8092A780EBF00BB32BB /* ListItemDemoController.swift */,
553548
F362C8072A780EA500BB32BB /* ListItemDemoController_SwiftUI.swift */,
554-
3ADA2E1C29C515890020434A /* MultilineCommandBarDemoController.swift */,
555549
FD41C8F322E28EEB0086F899 /* NavigationControllerDemoController.swift */,
556550
A5B6617523A4227300E801DD /* NotificationViewDemoController.swift */,
557551
D6296DAF295B8E1A002E8EB6 /* ObjectiveCDemoColorProviding.h */,
@@ -771,7 +765,6 @@
771765
EC0A83E4299ED3630010ED3E /* TextFieldTest.swift in Sources */,
772766
3A83F8F52953BAA200EF6629 /* PillButtonTest.swift in Sources */,
773767
3A83F8C52953B8B900EF6629 /* AvatarGroupTest.swift in Sources */,
774-
3AC1024C29DB969D002BF27E /* MultilineCommandBarTest.swift in Sources */,
775768
3A83F9032953BAF700EF6629 /* TabBarViewTest.swift in Sources */,
776769
3A83F8BD2953B75100EF6629 /* BaseTest.swift in Sources */,
777770
F30B74492A82DAE8000F63A0 /* XCUIElement+Extensions.swift in Sources */,
@@ -863,7 +856,6 @@
863856
EC24DBC628B97EB70026EF92 /* PopupMenuObjCDemoController.m in Sources */,
864857
53097D3C27028AD000A6E4DC /* HUDDemoController.swift in Sources */,
865858
92279B352B97F5DA00994D88 /* ButtonDemoController_SwiftUI.swift in Sources */,
866-
3ADA2E1D29C515890020434A /* MultilineCommandBarDemoController.swift in Sources */,
867859
92E977B826C7144F008E10A8 /* DemoControllerScrollView.swift in Sources */,
868860
92E977B726C7144F008E10A8 /* UIResponder+Extensions.swift in Sources */,
869861
B4EF66542295F1A8007FEAB0 /* TableViewHeaderFooterViewDemoController.swift in Sources */,

Demos/FluentUIDemo_iOS/FluentUI.Demo/Demos.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ struct Demos {
3737
DemoDescriptor("Label", LabelDemoController.self, supportsVisionOS: true),
3838
DemoDescriptor("ListActionItem", ListActionItemDemoController.self, supportsVisionOS: false),
3939
DemoDescriptor("ListItem", ListItemDemoController.self, supportsVisionOS: true),
40-
DemoDescriptor("MultilineCommandBar", MultilineCommandBarDemoController.self, supportsVisionOS: false),
4140
DemoDescriptor("NavigationController", NavigationControllerDemoController.self, supportsVisionOS: true),
4241
DemoDescriptor("NotificationView", NotificationViewDemoController.self, supportsVisionOS: true),
4342
DemoDescriptor("Other cells", OtherCellsDemoController.self, supportsVisionOS: false),

Demos/FluentUIDemo_iOS/FluentUI.Demo/Demos/MultilineCommandBarDemoController.swift

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

Demos/FluentUIDemo_iOS/FluentUIDemoTests/MultilineCommandBarTest.swift

Lines changed: 0 additions & 15 deletions
This file was deleted.
-75.9 KB
Binary file not shown.
-81.4 KB
Binary file not shown.

Docs/iOS/Controls/MultilineCommandBar.md

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

Sources/FluentUI_iOS/Components/MultilineCommandBar/MultilineCommandBar.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import UIKit
1111
/// An object representing a row in the `MultilineCommandBar`.
1212
///
1313
/// `MultilineCommandBarRow` contains the row's itemGroups and whether or not the row is scrollable. By default, multiline command bar rows are not scrollable.
14+
@available(*, deprecated, message: "MultilineCommandBar is deprecated. Use CommandBar and BottomSheetController directly.")
1415
@objc(MSFMultilineCommandBarRow)
1516
public class MultilineCommandBarRow: NSObject {
1617
var itemGroups: [CommandBarItemGroup] = []
@@ -26,6 +27,7 @@ public class MultilineCommandBarRow: NSObject {
2627
`MultilineCommandBar` is a vertical list of `CommandBars`, hosted in a `BottomSheetController`.
2728
Provide `compactRows` in `init` to set the rows in the MultilineCommandBar. Provide the optional `regularRows` if either layout or buttons change in regular mode. If regularRows is not provided, compactRows will be used.
2829
*/
30+
@available(*, deprecated, message: "MultilineCommandBar is deprecated. Use CommandBar and BottomSheetController directly.")
2931
@objc(MSFMultilineCommandBar)
3032
public class MultilineCommandBar: UIViewController {
3133

0 commit comments

Comments
 (0)