add minimal generalized main/detail view

This commit is contained in:
Felix Förtsch
2024-08-13 00:09:16 +02:00
parent d92710eec4
commit ec2a7c15c7
5 changed files with 119 additions and 123 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import SwiftData
struct WorkoutsPlusApp: App {
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Exercise.self,
Item.self,
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
@@ -25,7 +25,7 @@ struct WorkoutsPlusApp: App {
var body: some Scene {
WindowGroup {
ContentView()
ItemLibrary()
}
.modelContainer(sharedModelContainer)
}