diff options
Diffstat (limited to 'Sora/Views/MainView.swift')
| -rw-r--r-- | Sora/Views/MainView.swift | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Sora/Views/MainView.swift b/Sora/Views/MainView.swift new file mode 100644 index 0000000..c657540 --- /dev/null +++ b/Sora/Views/MainView.swift @@ -0,0 +1,27 @@ +import SwiftUI + +struct MainView: View { + @EnvironmentObject var settings: Settings + + var body: some View { + #if os(macOS) + ContentView() + .environmentObject(settings) + #else + TabView { + ContentView() + .tabItem { + Label("Posts", systemImage: "rectangle.stack") + } + + NavigationStack { + SettingsView() + } + .tabItem { + Label("Settings", systemImage: "gear") + } + } + .environmentObject(settings) + #endif + } +} |