Use Swift Package Manager to install.
import SlidingTabView
struct SlidingTabConsumerView : View {
@State private var selectedTabIndex = 0
var body: some View {
VStack() {
SlidingTabView(
selection: self.$selectedTabIndex,
tabs: ["First View", "Second View", "Third View", "Fourth View"]
)
switch selectedTabIndex {
case 0:
Text("First View")
case 1:
Text("Second View")
case 2:
Text("Third View")
case 3:
Text("Fourth View")
default:
Text("No View")
}
}
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
If you like what you see, feel free to support us!