SwiftUI NavigationLink Not Updating State on iPhone 13 with @StateObject
Can someone help me understand I'm experiencing an issue where my `NavigationLink` does not update the destination view when using `@StateObject` for managing state. I have a parent view that initializes a `@StateObject` and passes it to the child view where the `NavigationLink` resides. However, when I update the state in my `@StateObject`, the destination view does not reflect the new state until I navigate away and back again. Hereβs a simplified version of my code: ```swift import SwiftUI class DataModel: ObservableObject { @Published var value: String = "Initial" } struct ParentView: View { @StateObject var dataModel = DataModel() var body: some View { VStack { Text("Current Value: \(dataModel.value)") NavigationLink(destination: ChildView(dataModel: dataModel)) { Text("Go to Child") } Button("Update Value") { dataModel.value = "Updated!" } } } } struct ChildView: View { @ObservedObject var dataModel: DataModel var body: some View { Text("Child Value: \(dataModel.value)") } } ``` When I tap the "Update Value" button, the text in the `ParentView` updates as expected, but the text in `ChildView` remains as "Initial" until I navigate back to the `ParentView` and then return to `ChildView`. I've tried placing the `@ObservedObject` in the `ChildView` and even using `Binding` but still face the same issue. Also, I verified that my data model is indeed being updated in the `ParentView`. Is there a specific way to ensure the `NavigationLink` provides an updated view on state changes, or is this a known issue with SwiftUI on iPhone 13? Any insights would be greatly appreciated! I recently upgraded to Swift 3.11. Any ideas what could be causing this?