Post

Replies

Boosts

Views

Activity

Reply to Disable automatic iCloud sync with SwiftData
Still there: import SwiftData @main struct ForeCashApp: App { var sharedModelContainer: ModelContainer = { let schema = Schema([ Transaction.self, ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) do { return try ModelContainer(for: schema, configurations: [modelConfiguration]) } catch { fatalError("Could not create ModelContainer: \(error)") } }() var body: some Scene { WindowGroup { NavigationStack { TransactionsScreen() } } .modelContainer(sharedModelContainer) } }
Aug ’24