// in App.swift
NavigationView {
ScrumsView(scrums: DailyScrum.data)
}
NavigationView
List {
ForEach(scrums) { scrum in
NavigationLink(destination: Text(scrum.title)) {
CardView(scrum: scrum)
}
.listRowBackground(scrum.color)
}
}
SwiftUI automatically adds a disclosure indicator to the row.
.navigationBarItems(trailing: Button(action: {}) {
Image(systemName: "plus")
})
⚠️ deprecated , toolbar + with navigationbarleading placement
<aside> 💡 How to Replace it?
</aside>
.navigationTitle(scrum.title)
Tutorial | https://developer.apple.com/tutorials/app-dev-training/creating-a-navigation-hierarchy