Skip to content

Commit cf2ef66

Browse files
committed
fix: 🐛 [IOSSDKBUG-991] revert segment control style in swift5
1 parent f540fee commit cf2ef66

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Sources/FioriSwiftUICore/_FioriStyles/SegmentedControlPickerStyle.fiori.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ extension SegmentedControlPickerFioriStyle {
5252
}
5353

5454
var borderShape: some Shape {
55-
if #available(iOS 26.0, *) {
56-
return Capsule()
57-
} else {
55+
#if swift(>=6.0)
56+
if #available(iOS 26.0, *) {
57+
return Capsule()
58+
} else {
59+
return RoundedRectangle(cornerRadius: 9)
60+
}
61+
#else
5862
return RoundedRectangle(cornerRadius: 9)
59-
}
63+
#endif
6064
}
6165
}
6266

0 commit comments

Comments
 (0)