From 333aa22e8191d44f11cfa953355f3ed8639b55db Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 14 Nov 2024 00:50:00 -0500 Subject: [PATCH] Add `@ViewBuilder` to `NavigationStack. init` root (#3493) --- .../Observation/NavigationStack+Observation.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift b/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift index 936ecee9d31c..2e3e9bdc2d75 100644 --- a/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift +++ b/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift @@ -136,7 +136,7 @@ extension NavigationStack { /// this view. public init( path: Binding, StackAction>>, - root: () -> R, + @ViewBuilder root: () -> R, @ViewBuilder destination: @escaping (Store) -> Destination, fileID: StaticString = #fileID, filePath: StaticString = #filePath,