TabStriper

1.0.0

TabStriper is a library that switches screens by selecting a tab or swiping the screen Built with SwiftUI
giiiita/TabStriper

What's New

2021-06-09T07:19:27Z

TabStriper

TabStriper is a library that switches screens by selecting a tab or swiping the screen Built with SwiftUI

Platforms License: MIT

Usage

struct ColorView: View {
    let color: Color
    var body: some View {
        self.color
    }
}

struct ContentView: View {
    
    let colorViews: [StripView] = [
        StripView(id: 1, title: "green", view: AnyView(ColorView(color: .green))),
        StripView(id: 2, title: "blue", view: AnyView(ColorView(color: .blue)))
    ]
    
    var body: some View {
        TabStriper(stripViews: self.colorViews)
            .barColor(.red)
            .titleColor(.gray)
            .selectedTitleColor(.black)
    }
}

Installation

TabStriper is available via Swift Package Manager.

Using Xcode 11, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/giiiita/TabStriper.git

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Mar 13 2024 01:32:32 GMT-0900 (Hawaii-Aleutian Daylight Time)