NavigationView {
List {
NavigationLink("Hello", destination:
Text("Hello!"))
NavigationLink("world", destination:
Text("world!"))
}
.listStyle(PlainListStyle())
.frame(minWidth: 100)
.toolbar {
ToolbarItem(placement: ToolbarItemPlacement.primaryAction, content: {
Button("Button", action: {})
})
}
Text("23232")
.padding()
}
How to change swiftUI navigation bar background on macOS
try this:
NavigationLink("world", destination: Text("world!")).listRowBackground(Color.green)