add template for items, copy over exercise library

This commit is contained in:
Felix Förtsch
2024-08-13 00:52:55 +02:00
parent ec2a7c15c7
commit e33f9e80bc
8 changed files with 229 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ import SwiftData
struct WorkoutsPlusApp: App {
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
Exercise.self,
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
@@ -25,7 +25,7 @@ struct WorkoutsPlusApp: App {
var body: some Scene {
WindowGroup {
ItemLibrary()
ContentView()
}
.modelContainer(sharedModelContainer)
}