All Projects → hemangshah → Hhtabbarview

hemangshah / Hhtabbarview

Licence: mit
A lightweight customized tabbar view. 📌

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Hhtabbarview

Sotabbar
Light way to add Fancy bottom bar 📲
Stars: ✭ 400 (+220%)
Mutual labels:  tabbar
React Native Animated Tabbar
A 60FPS animated tab bar with a variety of cool animation presets 😎
Stars: ✭ 890 (+612%)
Mutual labels:  tabbar
Fwsidemenu
侧滑控件:支持左、右滑动的侧滑菜单,可配置单侧滑动,同时可配置菜单宽度等,更多配置请参考”可设置参数“。参考了QQ用户体验:支持边缘侧滑,解决手势冲突问题(边缘范围可设置)。提供OC使用Demo。
Stars: ✭ 90 (-28%)
Mutual labels:  tabbar
React Native Tabbar Interaction
Tabbar Component For React-Native
Stars: ✭ 457 (+265.6%)
Mutual labels:  tabbar
Transitionabletab
TransitionableTab makes it easy to animate when switching between tab.
Stars: ✭ 740 (+492%)
Mutual labels:  tabbar
Superbadges
Emoji Tab Bar button badges ✨
Stars: ✭ 47 (-62.4%)
Mutual labels:  tabbar
Foldingtabbar.ios
Folding Tab Bar and Tab Bar Controller
Stars: ✭ 3,677 (+2841.6%)
Mutual labels:  tabbar
Tabbar
🔥空祖家的导航栏工具
Stars: ✭ 100 (-20%)
Mutual labels:  tabbar
Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+5184%)
Mutual labels:  tabbar
Rn Collapsing Tab Bar
Collapsing header with tabs for react native
Stars: ✭ 71 (-43.2%)
Mutual labels:  tabbar
React Native Tab View
A cross-platform Tab View component for React Native
Stars: ✭ 4,742 (+3693.6%)
Mutual labels:  tabbar
Foldingtabbar.android
[DEPRECATED] Folding Tabbar menu for Android. This is a menu library.You can easily add a nice animated tab menu to your app.
Stars: ✭ 486 (+288.8%)
Mutual labels:  tabbar
Tap water
【声明:未发布前,勿使用,勿star,预计2020年11月底发布】Flutter tab_bar组件,支持中间带加号按钮的TabBar,支持Lottie动画。iTeaTime(技术清谈)团队出品。Highly customizable tabBar and tabBarController for Flutter
Stars: ✭ 52 (-58.4%)
Mutual labels:  tabbar
Officialfoldingtabbar.android
Stars: ✭ 434 (+247.2%)
Mutual labels:  tabbar
Dgfloldabletabbarcontrol
An elegant foldable tabbar control.
Stars: ✭ 91 (-27.2%)
Mutual labels:  tabbar
Lctabbarcontroller
A amazing and highly customized tabBarController! You could almost customize 100% properties with LCTabBarController!
Stars: ✭ 384 (+207.2%)
Mutual labels:  tabbar
Swipeabletabbarcontroller
UITabBarController with swipe interaction between its tabs.
Stars: ✭ 919 (+635.2%)
Mutual labels:  tabbar
Swsegmentedcontrol
A Android-like tab bar, drop-in replacement for UISegmentedControl.
Stars: ✭ 115 (-8%)
Mutual labels:  tabbar
Sscustombottomnavigation
Animated tabbar with native control
Stars: ✭ 98 (-21.6%)
Mutual labels:  tabbar
Weapp Component Tabbar
微信小程序自定义组件:带未读数目的tab按钮
Stars: ✭ 56 (-55.2%)
Mutual labels:  tabbar

HHTabBarView

A lightweight customized tabbar view.

License Platform Swift 4.x MadeWithLove Awesome-Swift

  1. Screenshots
  2. Features
  3. Installation
  4. Setup
  5. ToDos
  6. Credits
  7. Thanks
  8. License

Screenshots

Only Icon Icon (top) with title (bottom) Only Title
Icon (left) with title (right) Icon (right) with title (left) Icon (bottom) with title (top)
HHTabBarView top position HHTabBarView top position (iPhoneX)
Usage

Features

  1. Easily Configurable and Setup. Create tabs with Title, or Image or both.
  2. Dynamic Tabs Configurations.
  3. Detect Taps in a completion block.
  4. Show/Hide Badge Value in individual tabs. Easily Configure as per the needs.
  5. Lock/Unlock particular tabs.
  6. Easily show/hide UINavigationBar and HHTabBarView.
  7. Lightweight with zero dependancies.
  8. Change UI of HHTabBarView (LeftToRight or RightToLeft) as per the needs.
  9. Change HHTabBarView position as per UI requirements. Supports: Top and Bottom (Default).
Note: I don't recommended displaying HHTabBarView at the top. It's always good at the bottom.

Installation

  1. Manually – Add HHTabBarView/Source folder to your Project. And you're good to use HHTabBarView.

  2. CocoaPods: – pod 'HHTabBarView'

You can read the CHANGELOG file for a particular release.

Setup

Important: Please note that HHTabBarView is currently not supports UIStoryBoard. Means, you will have to create HHTabBarView programmatically. It is advised to setup HHTabBarView in AppDelegate.swift for your easyness.

  1. Initialize and keeping reference of HHTabBarView. 📌
    let hhTabBarView = HHTabBarView.shared
  1. Keeping reference of iOS default UITabBarController. 📌
    let referenceTabBarController = HHTabBarView.shared.referenceUITabBarController
  1. Setup referenced UITabBarController 📌
    func setupReferenceUITabBarController() -> Void {
        
        //Creating a storyboard reference
        let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main)
        
        //Creating navigation controller for navigation inside the first tab.
        let navigationController1: UINavigationController = UINavigationController.init(rootViewController: storyboard.instantiateViewController(withIdentifier: "FirstViewControllerID"))
        
        //Creating navigation controller for navigation inside the second tab.
        let navigationController2: UINavigationController = UINavigationController.init(rootViewController: storyboard.instantiateViewController(withIdentifier: "SecondViewControllerID"))
        
        //Update referenced TabbarController with your viewcontrollers
        referenceTabBarController.setViewControllers([navigationController1, navigationController2], animated: false)
    }
  1. Setup HHTabBarView 📌
    //Update HHTabBarView reference with the tabs requires.
    func setupHHTabBarView() -> Void {
        
        //Default & Selected Background Color
        let defaultTabColor = UIColor.white
        let selectedTabColor = UIColor.init(red: 234/255, green: 218/255, blue: 195/255, alpha: 1.0)
        let tabFont = UIFont.init(name: "Helvetica-Light", size: 14.0)
        
        //Create Custom Tabs
        let t1 = HHTabButton.init(withTitle: "Calendar", tabImage: UIImage.init(named: "Calendar")!, index: 0)
        t1.titleLabel?.font = tabFont
        t1.titleLabel?.textColor = UIColor.black
        t1.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)
        t1.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)
        
        let t2 = HHTabButton.init(withTitle: "Refresh", tabImage: UIImage.init(named: "Refresh")!, index: 1)
        t2.titleLabel?.font = tabFont
        t2.titleLabel?.textColor = UIColor.black
        t2.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)
        t2.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)
        
        //Note: As HHTabButton are subclassed of UIButton so you can modify it as much as possible.
        
        //Set Custom Tabs
        hhTabBarView.tabBarTabs = [t1, t2]
        
        //Set Default Index for HHTabBarView.
        hhTabBarView.defaultIndex = 1
        
        //Show Animation on Switching Tabs
        hhTabBarView.tabChangeAnimationType = .none
        
        //Handle Tab Change Event
        hhTabBarView.onTabTapped = { (tabIndex) in
            print("Selected Tab Index:\(tabIndex)")
        }
    }
  1. Setup window of your application inside the 📌
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        //Setup HHTabBarView
        setupReferenceUITabBarController()
        setupHHTabBarView()
        
        //Setup Application Window
        self.window = UIWindow.init(frame: UIScreen.main.bounds)
        self.window?.rootViewController = self.referenceTabBarController
        self.window?.makeKeyAndVisible()
        
        return true
    }
  1. Done! ✅

ToDo[s]

  • [x] Update README with multiple example usage and screenshots.

You can watch to HHTabBarView to see continuous updates. Stay tuned.

Have an idea for improvements of this class? Please open an issue.    

Credits

Hemang Shah

You can shoot me an email to contact.  

Thank You!!

See the contributions for details.

License

The MIT License (MIT)

Read the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].