Swift, Swiftui, iOS App Development, Mobile App Development, Programming.
ModelContainer = { let schema = Schema(CurrentScheme.models) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: true) do { return try ModelContainer(for: schema, configurations: [modelConfiguration]) } catch { fatalError("Could not create ModelContainer: \(error)") }