Library with custom implementation of expandable tab bar iOS component.
Written in pure SwiftUI.
Inpired by Aurélien Salomon (Google Bottom Bar Navigation Pattern - Mobile UX Design)
import ExpandableTextTabBar
struct ContentView: View {
var body: some View {
CustomTabView(tabs: [
Tab(
image: Image(systemName: "house"),
name: "Home",
color: .purple
) {
Text("Home")
},
Tab(
image: Image(systemName: "heart"),
name: "Likes",
color: .pink
) {
Text("Likes")
},
Tab(
image: Image(systemName: "magnifyingglass"),
name: "Search",
color: .green
) {
Text("Search")
},
Tab(
image: Image(systemName: "person"),
name: "Profile",
color: .purple
) {
Text("Profile")
}
])
}
}
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL.
https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app
ExpandableTextTabBar librtary is available under the MIT license.
link |
Stars: 1 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics