I have two navigation views. The parent is white labeled and the child is black labeled. When I revisit the parent view from the child view the child modifier is still applied. i.e the labels are white instead of black. I understand that applying View modifier to a navigation view changes all navigations views.
So my question is how do I toggle between two text colors in navigation views without using view modifier?
ParentNavigationView {
ChildNavigationView {
.whiteTextColorModifier()
}
}
.blackTextColorModifier()