{"id":2812,"url":"https://github.com/D-32/MiniTabBar","last_synced_at":"2025-08-03T12:31:17.337Z","repository":{"id":62447880,"uuid":"78678847","full_name":"D-32/MiniTabBar","owner":"D-32","description":"📱 A minimal tab bar alternative","archived":false,"fork":false,"pushed_at":"2018-08-16T22:59:45.000Z","size":1299,"stargazers_count":162,"open_issues_count":2,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-01T09:04:02.188Z","etag":null,"topics":["ios","swift","tabbar","ui","uitabbar"],"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/D-32.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":"2017-01-11T20:53:12.000Z","updated_at":"2024-11-27T12:13:27.000Z","dependencies_parsed_at":"2022-11-01T23:17:50.610Z","dependency_job_id":null,"html_url":"https://github.com/D-32/MiniTabBar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FMiniTabBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FMiniTabBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FMiniTabBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FMiniTabBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D-32","download_url":"https://codeload.github.com/D-32/MiniTabBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543133,"owners_count":17934432,"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":["ios","swift","tabbar","ui","uitabbar"],"created_at":"2024-01-05T20:16:23.487Z","updated_at":"2024-12-07T00:30:57.017Z","avatar_url":"https://github.com/D-32.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Tab Bar","Other free courses"],"readme":"\n[![Swift Version][swift-image]][swift-url]\n[![Version](https://img.shields.io/cocoapods/v/MiniTabBar.svg?style=flat)](http://cocoadocs.org/docsets/MiniTabBar)\n![License](https://img.shields.io/cocoapods/l/MiniTabBar.svg?style=flat)\n[![twitter: @dylan36032](http://img.shields.io/badge/twitter-%40dylan36032-blue.svg?style=flat)](https://twitter.com/dylan36032)\n\n# MiniTabBar\nA clean simple alternative to the UITabBar. Only shows the title when being tapped on. Gives the app a way cleaner look :)\n\n\u003cimg src=\"animation.gif\" width=\"275\"\u003e\n\n## Requirements\n- iOS 10.0+\n- Xcode 8\n\n## Installation\n\n#### CocoaPods:\nYou can use [CocoaPods](http://cocoapods.org/) to install `MiniTabBar` by adding it to your `Podfile`:\n\n```ruby\npod 'MiniTabBar'\n```\t\n#### Manually\nDrag and drop `MiniTabBar.swift` and `MiniTabBarItemView.swift` into your project.\n\n## Usage\n\n```swift\n// First create some tab bar items:\n// Icons should be a template image with the size 26 x 20 dp\nvar items = [MiniTabBarItem]()\nitems.append(MiniTabBarItem(title: \"Tab Name\", icon: \u003cUIImage\u003e))\n//...\n\n// Create a MiniTabBar instance and add it as a regular subview:\nlet tabBar = MiniTabBar(items: items)\ntabBar.translatesAutoresizingMaskIntoConstraints = false\ntabBar.delegate = self\nself.view.addSubview(tabBar)\n\nlet constraints = [\n\ttabBar.bottomAnchor.constraint(equalTo: view.layoutMarginsGuide.bottomAnchor),\n\ttabBar.widthAnchor.constraint(equalTo: view.widthAnchor),\n\ttabBar.heightAnchor.constraint(equalToConstant: 44),\n]\nNSLayoutConstraint.activate(constraints)\n\n// Delegate protocol:\nfunc tabSelected(_ index: Int) {\n\tprint(\"Selected tab: \", index)\n}\n```\n\n## Costumization\n\nHere are some ways to customize the look of the MiniTabBar:\n\n```swift\n// Change the tint colour of an item (title \u0026 icon):\ntabBar.tintColor = UIColor.red\n\n// Change the font of the title label:\ntabBar.font = UIFont.systemFont(ofSize: 10)\n\n// Select an item programmatically: \ntabBar.selectItem(2, animated: false)\n\n// Change the background \u0026 key line of the tab bar:\ntabBar.backgroundColor = UIColor.black\ntabBar.backgroundBlurEnabled = false\ntabBar.keyLine.isHidden = true\n```\n### Custom View\n\nIt's also possible to have a custom view that doesn't act like a tab. For example a (+) button in the middle.\n\n\u003cimg src=\"customButton.png\" width=\"275\"\u003e\n\n```swift\nlet customButton = UIButton()\ncustomButton.backgroundColor = UIColor.orange\ncustomButton.frame.size = CGSize(width: 50, height: 50)\nlet customItem = MiniTabBarItem(customView: customButton, \n                                    offset: UIOffset(horizontal: 0, \n                                                       vertical: -10))\ncustomItem.selectable = false\nitems.append(customItem)\n```\n\n\n[swift-image]:https://img.shields.io/badge/swift-3.0-orange.svg\n[swift-url]: https://swift.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD-32%2FMiniTabBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FD-32%2FMiniTabBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD-32%2FMiniTabBar/lists"}