You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add wide accessory view to ShyHeaderView (microsoft#2080)
* Add wide accessory view to ShyHeaderView
* change some text
* minor change
* PR feedback
* Rename wideAccessoryView to secondaryAccessoryView
* Rename wideContentStackView to secondaryContentStackView
---------
Co-authored-by: Huan Lu <[email protected]>
Copy file name to clipboardexpand all lines: ios/FluentUI.Demo/FluentUI.Demo/Demos/NavigationControllerDemoController.swift
+32
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ class NavigationControllerDemoController: DemoController {
15
15
addTitle(text:"Large Title with Primary style")
16
16
container.addArrangedSubview(createButton(title:"Show without accessory", action: #selector(showLargeTitle)))
17
17
container.addArrangedSubview(createButton(title:"Show with collapsible search bar", action: #selector(showLargeTitleWithShyAccessory)))
18
+
container.addArrangedSubview(createButton(title:"Show with collapsible search bar and pill segmented control", action: #selector(showLargeTitleWithShyAccessoryAndSecondaryAccessory)))
18
19
container.addArrangedSubview(createButton(title:"Show with fixed search bar", action: #selector(showLargeTitleWithFixedAccessory)))
19
20
container.addArrangedSubview(createButton(title:"Show without an avatar", action: #selector(showLargeTitleWithoutAvatar)))
20
21
container.addArrangedSubview(createButton(title:"Show with a custom leading button", action: #selector(showLargeTitleWithCustomLeadingButton)))
@@ -56,6 +57,9 @@ class NavigationControllerDemoController: DemoController {
56
57
addTitle(text:"Top Accessory View")
57
58
container.addArrangedSubview(createButton(title:"Show with top search bar for large screen width", action: #selector(showWithTopSearchBar)))
58
59
60
+
addTitle(text:"Top Accessory View with shy wide accessory view")
61
+
container.addArrangedSubview(createButton(title:"Show with top search bar for large screen width with a shy pill segment control", action: #selector(showWithTopSearchBarWithShySecondaryAccessoryView)))
62
+
59
63
addTitle(text:"Change Style Periodically")
60
64
container.addArrangedSubview(createButton(title:"Change the style every second", action: #selector(showSearchChangingStyleEverySecond)))
61
65
}
@@ -87,6 +91,10 @@ class NavigationControllerDemoController: DemoController {
/// Defines an accessory shown after the title or subtitle in a navigation bar. When defined, this gives the indication that the title can be tapped to show additional information.
0 commit comments