79707588

Date: 2025-07-19 21:57:44
Score: 0.5
Natty:
Report link

To solve this, I added .modelContainer(for: DrinkModel.self)` to the <AppName>App.swift App Struct like so:

import SwiftUI

@main
struct DrinkLess_watchOS_Watch_AppApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }.modelContainer(for: DrinkModel.self)
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: TestinginProd