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