Skip to content

Commit 333aa22

Browse files
authored
Add @ViewBuilder to NavigationStack. init root (#3493)
1 parent 2170719 commit 333aa22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ extension NavigationStack {
136136
/// this view.
137137
public init<State, Action, Destination: View, R>(
138138
path: Binding<Store<StackState<State>, StackAction<State, Action>>>,
139-
root: () -> R,
139+
@ViewBuilder root: () -> R,
140140
@ViewBuilder destination: @escaping (Store<State, Action>) -> Destination,
141141
fileID: StaticString = #fileID,
142142
filePath: StaticString = #filePath,

0 commit comments

Comments
 (0)