Skip to content

Commit 1c6cb3d

Browse files
committed
Remove unwanted changes
1 parent 9066908 commit 1c6cb3d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Demos/FluentUIDemo_iOS/FluentUI.Demo/Demos/TwoLineTitleViewDemoController.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ class TwoLineTitleViewDemoController: DemoController {
107107
makeExampleNavigationItem {
108108
$0.title = "Centered Title"
109109
$0.fluentConfiguration.titleStyle = .system
110-
if #available(iOS 26.0, *) {
111-
$0.subtitle = "Custom icon"
112-
} else {
113-
$0.fluentConfiguration.subtitle = "Custom icon"
114-
}
110+
$0.fluentConfiguration.subtitle = "Custom icon"
115111
$0.fluentConfiguration.titleImage = UIImage(named: "ic_fluent_star_24_regular")
116112
$0.fluentConfiguration.customSubtitleTrailingImage = UIImage(named: "ic_fluent_star_16_regular")
117113
$0.fluentConfiguration.titleAccessory = .init(location: .subtitle, style: .custom)
@@ -120,11 +116,7 @@ class TwoLineTitleViewDemoController: DemoController {
120116
makeExampleNavigationItem {
121117
$0.title = "Leading Title"
122118
$0.fluentConfiguration.titleStyle = .leading
123-
if #available(iOS 26.0, *) {
124-
$0.subtitle = "Subtitle"
125-
} else {
126-
$0.fluentConfiguration.subtitle = "Subtitle"
127-
}
119+
$0.fluentConfiguration.subtitle = "Subtitle"
128120
$0.fluentConfiguration.titleImage = UIImage(named: "ic_fluent_star_24_regular")
129121
$0.fluentConfiguration.customSubtitleTrailingImage = UIImage(named: "ic_fluent_star_16_regular")
130122
$0.fluentConfiguration.titleAccessory = .init(location: .title, style: .downArrow)

0 commit comments

Comments
 (0)