SlidingTabView

1.0.1

A SwiftUI Sliding Tab library
garage-panda/sliding-tab-view

What's New

Fix package

2022-08-23T19:04:08Z

Fix package

Sliding Tab View

Add as many tabs as you want and scroll through them

Alt Text

Installation

Use Swift Package Manager to install.

Usage

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")
            }
        }
    }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support

If you like what you see, feel free to support us!

License

MIT

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 21:05:29 GMT-0900 (Hawaii-Aleutian Daylight Time)