on-internet
← Community

SwiftData ModelContainer failure?

Stack Overflow ·

I have problems with SwiftData ModelContainer that does not replay correctly in one of my HW iPhones (an iPhone12 fully updated that I got from a friend that bought a new phone), but my iPad and the emulators makes no problem. But the iPhone 12 I got makes no database return most of the time, too bad to be usable. import Foundation import SwiftData actor CustomContainer { @MainActor static func create(shouldCreateDefaults: inout Bool) -> ModelContainer { let schema = Schema([Deal.self]) let configuration = ModelConfiguration() let container = try! ModelContainer(for: schema, configurations: co

Comments

Sign in or sign up to comment and upvote.

No comments yet.