I'm trying to add a header to my app depending on current Tab, so First, Second, Third Fourth. Similar to the reddit app News/Popular/Home. Is there something in Swift UI that can do this?
var body: some View {
TabView {
Text("First")
Text("Second")
Text("Third")
Text("Fourth")
}
.tabViewStyle(.page(indexDisplayMode: .never))
}
}

