Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wxxsw/tabbar

🚥 TabBar for SwiftUI - Make custom TabView possible
https://github.com/wxxsw/tabbar

swift swiftui tabbar

Last synced: 2 months ago
JSON representation

🚥 TabBar for SwiftUI - Make custom TabView possible

Awesome Lists containing this project

README

        

![TabBar](https://github.com/wxxsw/TabBar/blob/master/Images/logo.png?0223)






codebeat badge



## Installation

### Swift Package Manager

1. Select `Xcode -> File -> Swift Packages -> Add Package Dependency...`
2. Enter `https://github.com/wxxsw/TabBar`.
3. Click `Next`, then select the version, complete.

### Requirements

- iOS 13+
- Xcode 11+
- Swift 5+

## Quick Start

```swift
struct ContentView : View {
@State private var selection: Int = 0

var body: some View {
NavigationView {
TabBar(selection: $selection) {
HomeView()
.tabBarItem(0) { Image("chat") }
ContactView()
.tabBarItem(1) { Image("contact") }
DiscoverView()
.tabBarItem(2) { Image("discover") }
MeView()
.tabBarItem(3) { Image("me") }
}
}
}
}
```

## Demo

Open `TabBar.xcodeproj` and run `Demo` target.

## License

TabBar is released under the MIT license. [See LICENSE](https://github.com/wxxsw/TabBar/blob/master/LICENSE) for details.