Giter VIP home page Giter VIP logo

supertabbar's Introduction

SuperTabBar

Highly customizable SwiftUI TabBar, which allows you to create both simple tabbars and non-standard ones with a unique design.

Version License Platform Swift Version

Demo

Requirements

  • SwiftUI
  • iOS 14.0 or above

Installation

SPM

Add https://github.com/daniil108/SuperTabBar using Package Dependecies.

CocoaPods

pod 'SuperTabBar'

Usage

Tab implementation

import SuperTabBar

enum MyTab {

    case firstTab
    case secondTab
    case thirdTab

}

extension MyTab: SuperTab {
    ...
}

Tab view implementation

import SuperTabBar

struct MyView: View {
    
    @State private var selectedTab = MyTab.firstTab
    
    var body: some View {
        SuperTabBar(selection: $selectedTab) {
            Text("First screen")
                .tabItem(for: MyTab.firstTab)
            Text("Second screen")
                .tabItem(for: MyTab.secondTab)
            Text("Third screen")
                .tabItem(for: MyTab.thirdTab)
        }
    }
    
}

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

supertabbar's People

Contributors

daniil108 avatar

Stargazers

Rick avatar Jakub Kuciński avatar  avatar Teck Poo Tan avatar Khater avatar Dmitry avatar Kemal Serkan YILDIRIM avatar Lalu Iman Abdullah avatar Eliezer Sant Ana avatar Masoud Darougheh avatar Chathura Lakmal avatar Matthew Low avatar Artur avatar Agripino Gabriel avatar Micheal Hany avatar Chrystian Salgado avatar Thomas Curley avatar José Luis Sánchez-Porro Godoy avatar  avatar  avatar Rolando Avila avatar IslamNabil avatar Aref avatar  avatar  avatar Sentsov Roman avatar Aleksei Brovko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.