Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wxxsw/tabbar
- Owner: wxxsw
- License: mit
- Created: 2020-02-23T08:56:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T10:02:44.000Z (almost 5 years ago)
- Last Synced: 2023-03-02T06:26:47.876Z (almost 2 years ago)
- Topics: swift, swiftui, tabbar
- Language: Swift
- Homepage: https://github.com/wxxsw/TabBar
- Size: 203 KB
- Stars: 27
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![TabBar](https://github.com/wxxsw/TabBar/blob/master/Images/logo.png?0223)
## 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.