diff --git a/README.md b/README.md index ee29d2f51718..28bc047e6f48 100644 --- a/README.md +++ b/README.md @@ -517,11 +517,13 @@ This means the entry point to the application no longer needs to construct depen @main struct MyApp: App { var body: some Scene { - FeatureView( - store: Store(initialState: Feature.State()) { - Feature() - } - ) + WindowGroup { + FeatureView( + store: Store(initialState: Feature.State()) { + Feature() + } + ) + } } } ```