SwiftUI's Refreshing mechanism is driving me crazy.
Say that I have this view:
NavigationView {
List($datasource) { $item in
NavigationLink {
SubView(item: $item)
} label: {
Text(item.someAttribute)
}
}
}
SubView:
TextField("Placeholder", text: $item.someAttribute)
And each time I edit the value in the SubView, the SwiftUI's navigation controller retreats the view to the home page(the initial view). Why?