wip
This commit is contained in:
@ -21,12 +21,11 @@ final class WorkoutsContainer {
|
||||
|
||||
@MainActor
|
||||
static var preview: ModelContainer {
|
||||
let schema = Schema(versionedSchema: SchemaV1.self)
|
||||
|
||||
let configuration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: true)
|
||||
let configuration = ModelConfiguration(isStoredInMemoryOnly: true)
|
||||
|
||||
do {
|
||||
let container = try ModelContainer(for: schema, configurations: [configuration])
|
||||
let schema = Schema(SchemaV1.models)
|
||||
let container = try ModelContainer(for: schema, configurations: configuration)
|
||||
let context = ModelContext(container)
|
||||
|
||||
// Create default data for previews
|
||||
|
Reference in New Issue
Block a user