Swiftpack.co - MisnikovRoman/ExpandableTextTabBar as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by MisnikovRoman.
MisnikovRoman/ExpandableTextTabBar 1.0.0
Library with custom implementation of expandable tab bar iOS component.
⭐️ 1
🕓 2 years ago
iOS
.package(url: "https://github.com/MisnikovRoman/ExpandableTextTabBar.git", from: "1.0.0")

ExpandableTextTabBar

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)

Example

giphy

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

Installation

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

License

ExpandableTextTabBar librtary is available under the MIT license.

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics