From 4696aa38b121ef98e720cc90378533f02f2ac401 Mon Sep 17 00:00:00 2001 From: Sergey Balalaev Date: Sat, 27 May 2023 00:34:25 +0400 Subject: [PATCH] fixed bug with saving State of Coordinator --- navitest/Views/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navitest/Views/ContentView.swift b/navitest/Views/ContentView.swift index 5491823..50eff14 100644 --- a/navitest/Views/ContentView.swift +++ b/navitest/Views/ContentView.swift @@ -26,7 +26,7 @@ class Coordinator: ObservableObject { struct ContentView: View { - @ObservedObject private var model = Coordinator() + @StateObject private var model = Coordinator() var body: some View { NavigationStack(path: $model.path) {