How may i implement a TabbedView with each tabs owning it's navigation logic within lists ?
Apple guide implementation of TabbedView + Navigation
Add a Comment
How may i implement a TabbedView with each tabs owning it's navigation logic within lists ?
var body: some View {
TabbedView {
SomeView().tabItem {
Image(systemName: "house")
Text("View 1")
}.tag(0)
AnoterView().tabItem {
Image(systemName: "dog")
Text("View 2")
}.tag(1)
}
}
where SomeView and AnotherView have a list in their body.