Stabilize beta release with warning cleanup and edge-case fixes
This commit is contained in:
@@ -73,7 +73,17 @@ struct SportsTimeApp: App {
|
||||
do {
|
||||
return try ModelContainer(for: schema, configurations: [modelConfiguration])
|
||||
} catch {
|
||||
fatalError("Could not create ModelContainer: \(error)")
|
||||
assertionFailure("Could not create persistent ModelContainer: \(error)")
|
||||
do {
|
||||
let fallbackConfiguration = ModelConfiguration(
|
||||
schema: schema,
|
||||
isStoredInMemoryOnly: true,
|
||||
cloudKitDatabase: .none
|
||||
)
|
||||
return try ModelContainer(for: schema, configurations: [fallbackConfiguration])
|
||||
} catch {
|
||||
preconditionFailure("Could not create fallback ModelContainer: \(error)")
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user