From c6a8a7e35456454325e2373bf695161b22f1468b Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Fri, 3 Apr 2026 20:59:07 -0700 Subject: [PATCH] Use sidebarAdaptable --- Sources/ShowcaseFuse/ContentView.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Sources/ShowcaseFuse/ContentView.swift b/Sources/ShowcaseFuse/ContentView.swift index a4af928..707409b 100644 --- a/Sources/ShowcaseFuse/ContentView.swift +++ b/Sources/ShowcaseFuse/ContentView.swift @@ -31,6 +31,20 @@ struct ContentView: View { Label("Settings", systemImage: "gearshape.fill") } } + .modify { + if #available(iOS 18.0, *) { + $0.tabViewStyle(.automatic) + } else { + $0 + } + } .preferredColorScheme(appearance == "dark" ? .dark : appearance == "light" ? .light : nil) } } + +public extension View { + @ViewBuilder + func modify(@ViewBuilder _ transform: (Self) -> T) -> some View { + transform(self) + } +}