Pavel Lahoda
03/14/2024, 1:53 PMstruct MyView: View {
@State var path = NavigationPath()
body with NavigationStack....
func openDetail() {
path.append("mystring")
print("path: \(path.count)")
}
}
When I call openDetail() from my KMM code, the State var path seems not to be updated. Prints "path: 0" (and therefore the navigation doesn't work). The whole MyView is not getting reinitialized (init is not called) Any ideas?Paweł Kulikowski
03/14/2024, 2:36 PMPavel Lahoda
03/14/2024, 3:07 PMPaweł Kulikowski
03/14/2024, 5:28 PMPaweł Kulikowski
03/14/2024, 5:29 PMPaweł Kulikowski
03/14/2024, 5:29 PMPavel Lahoda
03/14/2024, 5:31 PMPaweł Kulikowski
03/14/2024, 5:33 PM