f512d94c74
git-subtree-dir: clients/ds-app git-subtree-mainline:a24e3e6f22git-subtree-split:5206cf3b0c
25 lines
676 B
Swift
25 lines
676 B
Swift
import SwiftUI
|
|
import AppFeature
|
|
|
|
/// Thin @main entry: window + DI only. Injects AppModel (FixtureDSClient + AIRouter(MockAIProvider))
|
|
/// so the whole pipeline renders with zero real backend / zero real LLM. Feature logic lives in
|
|
/// AppFeature, keeping the seam to a future Xcode/iPhone target trivial.
|
|
@main
|
|
struct DSApp: App {
|
|
@State private var model: AppModel
|
|
|
|
@MainActor
|
|
init() {
|
|
_model = State(initialValue: AppModel.preview)
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
.environment(model)
|
|
.frame(minWidth: 980, minHeight: 640)
|
|
}
|
|
.windowStyle(.automatic)
|
|
}
|
|
}
|