Rename @testable imports across all test/UI test files after the Tiji→Kangkang
project rename in 44ed01a. Add shared scheme. Sync CLAUDE.md / W2 plan / spec
v1.0 to current scope (Symptom feature noted, C1/C2 flow lockdown).
29 lines
704 B
Swift
29 lines
704 B
Swift
import SwiftUI
|
|
import SwiftData
|
|
|
|
@main
|
|
struct KangkangApp: App {
|
|
var sharedModelContainer: ModelContainer = {
|
|
let schema = Schema([
|
|
Indicator.self,
|
|
Report.self,
|
|
DiaryEntry.self,
|
|
Asset.self,
|
|
ChatTurn.self,
|
|
])
|
|
let config = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
|
|
do {
|
|
return try ModelContainer(for: schema, configurations: [config])
|
|
} catch {
|
|
fatalError("Could not create ModelContainer: \(error)")
|
|
}
|
|
}()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
}
|
|
.modelContainer(sharedModelContainer)
|
|
}
|
|
}
|