Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
It doesn't work. It change NavigationButton color, but not a navBar or text color:import SwiftUI
struct TaskList : View {
var body: some View {
List(0 ..< 5) { item in
NavigationButton(destination: TaskEditor()) {
Text("Hello World!")
}
}
.navigationBarTitle(Text("Tasks"), displayMode: .inline)
.navigationBarItems(trailing: NavigationButton(destination: TaskEditor()) {
Image(systemName: "plus")
})
.accentColor(Color("Light Green"))
}
}
#if DEBUG
struct TaskList_Previews : PreviewProvider {
static var previews: some View {
NavigationView {
TaskList()
}
}
}
#endif