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