]> git.r.bdr.sh - rbdr/captura/blob - Captura/Presentation/Screens/PreferencesScreen.swift
Separate some logic out of main app
[rbdr/captura] / Captura / Presentation / Screens / PreferencesScreen.swift
1 import SwiftUI
2 import SwiftData
3
4 struct PreferencesScreen: View {
5 @Environment(\.modelContext) private var modelContext
6 @Query private var items: [Item]
7
8 var body: some View {
9 TabView {
10 OutputSettings().tabItem {
11 Label("Output", systemImage: "video.fill")
12 }.padding(8.0)
13 AdvancedSettings().tabItem {
14 Label("Advanced", systemImage: "gear")
15 }.padding(8.0)
16 }.padding(16.0)
17 }
18 }
19
20 #Preview {
21 PreferencesScreen()
22 .modelContainer(for: Item.self, inMemory: true)
23 }