{"id":13466866,"url":"https://github.com/hemangshah/HHTabBarView","last_synced_at":"2025-03-26T00:31:36.702Z","repository":{"id":56913378,"uuid":"97578324","full_name":"hemangshah/HHTabBarView","owner":"hemangshah","description":"A lightweight customized tabbar view. 📌","archived":false,"fork":false,"pushed_at":"2020-05-28T07:18:14.000Z","size":1284,"stargazers_count":155,"open_issues_count":1,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-21T03:47:05.198Z","etag":null,"topics":["custom-tabbar-controller","tabbar","tabbarcontroller","uitabbar","uitabbarcontroller"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hemangshah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-18T09:12:30.000Z","updated_at":"2024-12-24T10:31:17.000Z","dependencies_parsed_at":"2022-08-20T20:50:22.742Z","dependency_job_id":null,"html_url":"https://github.com/hemangshah/HHTabBarView","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemangshah%2FHHTabBarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemangshah%2FHHTabBarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemangshah%2FHHTabBarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemangshah%2FHHTabBarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemangshah","download_url":"https://codeload.github.com/hemangshah/HHTabBarView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245438834,"owners_count":20615537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-tabbar-controller","tabbar","tabbarcontroller","uitabbar","uitabbarcontroller"],"created_at":"2024-07-31T15:00:50.871Z","updated_at":"2025-03-26T00:31:35.970Z","avatar_url":"https://github.com/hemangshah.png","language":"Swift","funding_links":[],"categories":["Libs","UI [🔝](#readme)"],"sub_categories":["UI"],"readme":"![HHTabBarView](https://github.com/Tobaloidee/HHTabBarView/blob/master/logo/logotype-a.png)\n\nA lightweight customized tabbar view.\n\n[![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://github.com/hemangshah/HHTabBarView/blob/master/LICENSE)\n[![Platform](https://img.shields.io/badge/Platforms-iOS-red.svg)](https://www.apple.com/in/ios/)\n[![Swift 4.x](https://img.shields.io/badge/Swift-4.x-blue.svg)](https://swift.org/)\n[![MadeWithLove](https://img.shields.io/badge/Made%20with%20%E2%9D%A4-India-green.svg)](https://madewithlove.org.in/)\n[![Awesome-Swift](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/matteocrippa/awesome-swift/)\n\n1. [Screenshots](#screenshots)\n2. [Features](#features)\n3. [Installation](#installation)\n4. [Setup](#setup)\n5. [ToDos](#todos)\n6. [Credits](#credits)\n7. [Thanks](#thank-you)\n8. [License](#license)\n\n## Screenshots\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/1.png\" alt = \"Only Icon\"\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/2.png\" alt = \"Icon (top) with title (bottom)\"\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/3.png\" alt = \"Only Title\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/4.png\" alt = \"Icon (left) with title (right)\"\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/5.png\" alt = \"Icon (right) with title (left)\"\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/6.png\" alt = \"Icon (bottom) with title (top)\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/7.png\" alt = \"HHTabBarView top position\"\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/8.png\" alt = \"HHTabBarView top position (iPhoneX)\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd colspan=\"3\" align=\"center\"\u003e\u003cimg src = \"https://github.com/hemangshah/HHTabBarView/blob/master/Screenshots/HHTabBarFlow.gif\" alt = \"Usage\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Features\n\n1. Easily Configurable and Setup. Create tabs with Title, or Image or both. \n2. Dynamic Tabs Configurations.\n3. Detect Taps in a completion block.\n4. Show/Hide Badge Value in individual tabs. Easily Configure as per the needs.\n5. Lock/Unlock particular tabs.\n6. Easily show/hide UINavigationBar and HHTabBarView.\n7. Lightweight with zero dependancies.\n8. Change UI of HHTabBarView (LeftToRight or RightToLeft) as per the needs.\n9. Change HHTabBarView position as per UI requirements. Supports: Top and Bottom (Default). \n\n##### Note: I don't recommended displaying HHTabBarView at the top. It's always good at the bottom.\n\n## Installation\n\n1. **Manually** – Add `HHTabBarView/Source` folder to your Project. And you're good to use `HHTabBarView`.\n\n2. **CocoaPods**: – `pod 'HHTabBarView'`\n    \n\u003e You can read the [CHANGELOG](https://github.com/hemangshah/HHTabBarView/blob/master/CHANGELOG.md) file for a particular release.\n\n## Setup\n\n**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.\n\n1.  Initialize and keeping reference of `HHTabBarView`. 📌\n````swift\n    let hhTabBarView = HHTabBarView.shared\n````\n\n2.  Keeping reference of iOS default `UITabBarController`. 📌\n````swift\n    let referenceTabBarController = HHTabBarView.shared.referenceUITabBarController\n````\n    \n3. Setup referenced `UITabBarController` 📌\n````swift\n    func setupReferenceUITabBarController() -\u003e Void {\n        \n        //Creating a storyboard reference\n        let storyboard = UIStoryboard.init(name: \"Main\", bundle: Bundle.main)\n        \n        //Creating navigation controller for navigation inside the first tab.\n        let navigationController1: UINavigationController = UINavigationController.init(rootViewController: storyboard.instantiateViewController(withIdentifier: \"FirstViewControllerID\"))\n        \n        //Creating navigation controller for navigation inside the second tab.\n        let navigationController2: UINavigationController = UINavigationController.init(rootViewController: storyboard.instantiateViewController(withIdentifier: \"SecondViewControllerID\"))\n        \n        //Update referenced TabbarController with your viewcontrollers\n        referenceTabBarController.setViewControllers([navigationController1, navigationController2], animated: false)\n    }\n````    \n    \n4. Setup `HHTabBarView` 📌\n````swift\n    //Update HHTabBarView reference with the tabs requires.\n    func setupHHTabBarView() -\u003e Void {\n        \n        //Default \u0026 Selected Background Color\n        let defaultTabColor = UIColor.white\n        let selectedTabColor = UIColor.init(red: 234/255, green: 218/255, blue: 195/255, alpha: 1.0)\n        let tabFont = UIFont.init(name: \"Helvetica-Light\", size: 14.0)\n        \n        //Create Custom Tabs\n        let t1 = HHTabButton.init(withTitle: \"Calendar\", tabImage: UIImage.init(named: \"Calendar\")!, index: 0)\n        t1.titleLabel?.font = tabFont\n        t1.titleLabel?.textColor = UIColor.black\n        t1.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)\n        t1.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)\n        \n        let t2 = HHTabButton.init(withTitle: \"Refresh\", tabImage: UIImage.init(named: \"Refresh\")!, index: 1)\n        t2.titleLabel?.font = tabFont\n        t2.titleLabel?.textColor = UIColor.black\n        t2.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)\n        t2.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)\n        \n        //Note: As HHTabButton are subclassed of UIButton so you can modify it as much as possible.\n        \n        //Set Custom Tabs\n        hhTabBarView.tabBarTabs = [t1, t2]\n        \n        //Set Default Index for HHTabBarView.\n        hhTabBarView.defaultIndex = 1\n        \n        //Show Animation on Switching Tabs\n        hhTabBarView.tabChangeAnimationType = .none\n        \n        //Handle Tab Change Event\n        hhTabBarView.onTabTapped = { (tabIndex) in\n            print(\"Selected Tab Index:\\(tabIndex)\")\n        }\n    }\n````\n\n5. Setup `window` of your application inside the 📌\n````swift\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -\u003e Bool {\n        // Override point for customization after application launch.\n        \n        //Setup HHTabBarView\n        setupReferenceUITabBarController()\n        setupHHTabBarView()\n        \n        //Setup Application Window\n        self.window = UIWindow.init(frame: UIScreen.main.bounds)\n        self.window?.rootViewController = self.referenceTabBarController\n        self.window?.makeKeyAndVisible()\n        \n        return true\n    }\n````\n\n6. Done! ✅    \n\n\u003chr\u003e\n\n## ToDo[s]\n\n- [x] Update README with multiple example usage and screenshots.\n\nYou can [watch](https://github.com/hemangshah/HHTabBarView/subscription) to \u003cb\u003eHHTabBarView\u003c/b\u003e to see continuous updates. Stay tuned.\n\n\u003cb\u003eHave an idea for improvements of this class?\nPlease open an [issue](https://github.com/hemangshah/HHTabBarView/issues/new).\u003c/b\u003e\n    \n## Credits\n\n\u003cb\u003e[Hemang Shah](https://about.me/hemang.shah)\u003c/b\u003e\n\n**You can shoot me an [email](http://www.google.com/recaptcha/mailhide/d?k=01IzGihUsyfigse2G9z80rBw==\u0026c=vU7vyAaau8BctOAIJFwHVbKfgtIqQ4QLJaL73yhnB3k=) to contact.**\n   \n## Thank You!!\n\nSee the [contributions](https://github.com/hemangshah/HHTabBarView/blob/master/CONTRIBUTIONS.md) for details.\n\n## License\n\nThe MIT License (MIT)\n\n\u003e Read the [LICENSE](https://github.com/hemangshah/HHTabBarView/blob/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemangshah%2FHHTabBarView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemangshah%2FHHTabBarView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemangshah%2FHHTabBarView/lists"}