'How do I add a sliding header to my Page View in Swift UI
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))
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

