Files
hyungi_document_server/clients/ds-app/App/DSApp.swift
T

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)
}
}