import SwiftData
struct PreferencesScreen: View {
- @Environment(\.modelContext) private var modelContext
- @Query private var items: [Item]
-
var body: some View {
TabView {
OutputSettings().tabItem {
Label("Output", systemImage: "video.fill")
- }.padding(8.0)
+ }.padding(8.0).frame(minWidth: 300, minHeight: 130)
AdvancedSettings().tabItem {
Label("Advanced", systemImage: "gear")
- }.padding(8.0)
+ }.padding(8.0).frame(minWidth: 300, minHeight: 260)
}.padding(16.0)
}
}
#Preview {
PreferencesScreen()
- .modelContainer(for: Item.self, inMemory: true)
}