diff --git a/Sources/Showcase/ContentView.swift b/Sources/Showcase/ContentView.swift index a1a5a3e..9a94711 100644 --- a/Sources/Showcase/ContentView.swift +++ b/Sources/Showcase/ContentView.swift @@ -32,9 +32,18 @@ struct ContentView: View { Label("Settings", systemImage: "gearshape.fill") } } + .tabViewStyle(tabViewStyle) .preferredColorScheme(appearance == "dark" ? .dark : appearance == "light" ? .light : nil) .statusBarHidden(statusBarHidden) } + + var tabViewStyle: some TabViewStyle { + if #available(iOS 18.0, *) { + return .sidebarAdaptable + } else { + return .automatic + } + } } #Preview {