From 6c1224a363d74296ed5bd3645947b8c195610f06 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Wed, 1 Apr 2026 15:39:39 -0700 Subject: [PATCH] Use sidebarAdaptable --- Sources/Showcase/ContentView.swift | 9 +++++++++ 1 file changed, 9 insertions(+) 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 {