[1 SOLUTION FOUND!] Thanks to George's comment I was able to find a solution https://stackoverflow.com/a/70353393/882987 but if somebody has any other solution feel free to write it :)
I am having some issues with setting custom navigation bar tint color in SwiftUI for "pushed" views.
Code is something like this, having a stack of items and tapping on each of them we show/push some detail view:
NavigationView {
ScrollView {
LazyVStack(alignment: .leading) {
ForEach(items) { item in
NavigationLink(destination: DetailItemView(item))) {
ListItemView(item)
}
}
}
}
}
And I would like to have different navigation bar tint color for each view that gets pushed.
Is there a way to achieve that?