Skip to content

Commit 8b88bdd

Browse files
authored
Update TabViewImpl.swift (#32)
Fix iOS build error when using Xcode < v16
1 parent 7cc441e commit 8b88bdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/TabViewImpl.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ extension View {
9595
func getSidebarAdaptable(enabled: Bool) -> some View {
9696
if #available(iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, *) {
9797
if (enabled) {
98-
self.tabViewStyle(.sidebarAdaptable)
98+
#if compiler(>=6.0)
99+
self.tabViewStyle(.sidebarAdaptable)
100+
#endif
99101
} else {
100102
self
101103
}

0 commit comments

Comments
 (0)