Post

Replies

Boosts

Views

Activity

Reply to Can you have two separate model containers with SwiftData?
I had the same problem. This worked for me. struct ContentView: View { var body: some View { TabView { VehicleTab() .tabItem({ Label("Vehicles", systemImage: "car.fill")}) TransactionsTab() .tabItem { Label("Transactions", systemImage: "dollarsign") } } .modelContainer(for: [Vehicle.self, Transaction.self]) } }
Replies
Boosts
Views
Activity
Feb ’25