feat(s3): RootView #Preview 추가 (Xcode 캔버스용)

DEBUG-gated #Preview(AppModel.preview + loadInitial). bare SPM 에서는
프리뷰 불안정하나 A-6 .app 타깃에서 캔버스 렌더용으로 보존.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hyungi
2026-06-05 07:33:58 +09:00
parent b9b5188265
commit c8c7fa22fc
+10
View File
@@ -114,3 +114,13 @@ struct EmptyState: View {
.background(Sage.surface)
}
}
#if DEBUG
#Preview("DS App — full shell") {
@Previewable @State var model = AppModel.preview
RootView()
.environment(model)
.task { await model.loadInitial() }
.frame(minWidth: 1000, minHeight: 660)
}
#endif