From f2a658d68afde9ec11b657ff1798adcfb4890ebd Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Mon, 30 Mar 2026 21:05:34 -0700 Subject: [PATCH] Fix infinite recomposition in NavigationStackPlayground --- Sources/Showcase/NavigationStackPlayground.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {