{"id":27841407,"url":"https://github.com/azimin/aztabbarcontroller","last_synced_at":"2026-03-08T01:07:13.350Z","repository":{"id":56901408,"uuid":"73758239","full_name":"azimin/AZTabBarController","owner":"azimin","description":"Custom TabBar Controller for iOS","archived":false,"fork":false,"pushed_at":"2018-02-06T13:43:48.000Z","size":832,"stargazers_count":37,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-03T04:59:31.822Z","etag":null,"topics":["tabbar"],"latest_commit_sha":null,"homepage":null,"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/azimin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-11-15T00:04:18.000Z","updated_at":"2024-03-06T10:35:23.000Z","dependencies_parsed_at":"2022-08-21T02:50:49.992Z","dependency_job_id":null,"html_url":"https://github.com/azimin/AZTabBarController","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azimin%2FAZTabBarController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azimin%2FAZTabBarController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azimin%2FAZTabBarController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azimin%2FAZTabBarController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azimin","download_url":"https://codeload.github.com/azimin/AZTabBarController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252145020,"owners_count":21701438,"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":["tabbar"],"created_at":"2025-05-03T04:59:36.199Z","updated_at":"2026-03-08T01:07:13.293Z","avatar_url":"https://github.com/azimin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AZTabBarController\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/AZTabBarController.svg)](https://img.shields.io/cocoapods/v/AZTabBarController.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/AZTabBarController.svg?style=flat)](http://cocoadocs.org/docsets/AZTabBarController)\n[![Twitter](https://img.shields.io/badge/twitter-@ziminalex-blue.svg?style=flat)](http://twitter.com/ziminalex)\n![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)\n\nAZTabBarController helps to extend capabilities of default `UITabBarController` and create custom `UITabBar` items with custom appearance (with animations, layout and so on). Right now works only with storyboard setup (so your `UITabBarController` should be on storybaord).\n\n## Visual Example\n\nInside this repository you can try `iOS Example` target with example of `AZTabBarController` implementation and custom items (`FashionTabBarItem.swift` and `MiddleTabBarItem`):\n\n![Animation example](imgs/animation_example.gif)\n\n## Installation\n\n- Add the following to your [`Podfile`](http://cocoapods.org/) and run `pod install`\n```ruby\npod 'AZTabBarController'\n```\n- or add the following to your [`Cartfile`](https://github.com/Carthage/Carthage) and run `carthage update`\n```ruby\ngithub \"azimin/AZTabBarController\"\n```\n- or clone as a git submodule,\n\n- or just copy `Source/AZTabBarController.swift` and `Source/UIView+Extensions.swift` into your project.\n\n## AZTabBarController setup in storyboard\n\nAt first you should change `UITabBarController` to `AZTabBarController` on storyboard.\n\n![First setup step](imgs/setup_1.png)\n\nThen change `UITabBar` to `AZTabBar` on the same storyboard.\n\n![Second setup step](imgs/setup_2.png)\n\nThen change all `UITabBarItem` to `AZTabBarItem` on this storyboard.\n\n![Third setup step](imgs/setup_3.png)\n\nAlso don't forget to implement code inside your view controllers for tab bar. This example you can find in Demo `iOS Example` project:\n\n```swift\noverride func az_tabBarItemContentView() -\u003e AZTabBarItemView {\n  let tab = FashionTabBarItem.loadViewFromNib()\n    \n  tab.imageView.image = UIImage(named: \"img_profile\")\n  tab.bottomLabel.text = \"Profile\"\n    \n  return tab\n}\n```\n\n## Possible assertions\n\n- `All tab bar items must be AZTabBarItem class` means one of your root view contllers on tab bar has `UITabBarItem` class instead of `AZTabBarItem`\n- `tabBar class must be AZTabBar class` means you tabBar on UITabBarViewController is `UITabBar`, but should be `AZTabBar`\n\n## Dynamic height\n\n- You can setup default height on storybaord as @IBInspectable `AZTabBarController` property\n- If you want to change height of tab bar, you can call (on any chird view controllers):\n```swift\nself.az_tabBarController?.preferedHeight = 125\n```\nThis would change `Bottom Layout Guide`\n- If you want to change height of specific items, you should use `heightValue` of your `AZTabBarItemView`, so it would be:\n```swift\noverride func az_tabBarItemContentView() -\u003e AZTabBarItemView {\n  let tab = MiddleTabBarItem.loadViewFromNib()\n    \n  tab.heightValue = 50\n    \n  return tab\n}\n```\nBut pay attention that `Bottom Layout Guide` would use old value.\n\n## To-do\n\n- Support iOS 8+ (moved from anchors to cosntraints)\n- Support creation from code (right now only storyboard)\n- Support `AZTabBarItemView` without xib\n- Add some template `AZTabBarItemView` subsclasses\n- Improve example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazimin%2Faztabbarcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazimin%2Faztabbarcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazimin%2Faztabbarcontroller/lists"}