diff --git a/Sources/Showcase/NavigationStackPlayground.swift b/Sources/Showcase/NavigationStackPlayground.swift index e37dceb..0a95b1c 100644 --- a/Sources/Showcase/NavigationStackPlayground.swift +++ b/Sources/Showcase/NavigationStackPlayground.swift @@ -64,7 +64,7 @@ private struct PathBindingSheetContentView: View { @State var path: [PathElement] = [] init(initialPath: [PathElement] = []) { - path.append(contentsOf: initialPath) + _path = State(initialValue: initialPath) } var body: some View {