ExpandedTabBar alternatives and similar libraries
Based on the "Tab Bar" category.
Alternatively, view ExpandedTabBar alternatives based on common mentions on social networks and blogs.
-
animated-tab-bar
:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion -
adaptive-tab-bar
:octocat: AdaptiveController is a 'Progressive Reduction' Swift UI module for adding custom states to Native or Custom iOS UI elements. Swift UI component by @Ramotion -
SwipeViewController
SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers -
TabDrawer
Customizable TabBar UI element that allows you to run a block of code upon TabBarItem selection, written in Swift -
CardTabBar
This library is for adding animation to iOS tabbar items, which is inherited from UITabBarController. -
WormTabStrip
🐛 WormTabStrip ViewPager for iOS written in Swift, which gives continuous feedback to the user when scrolling -
GGTabBar
Another UITabBar & UITabBarController (iOS Tab Bar) replacement, but uses Auto Layout for arranging it's views hierarchy. -
KYWheelTabController
KYWheelTabController is a subclass of UITabBarController.It displays the circular menu instead of UITabBar.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ExpandedTabBar or a related project?
README
ExpandedTabBar v3.0.1
ExpandedTabBar is a very creative designed solution for "more" items in UITabBarController. It's greate experience to have more comfortable and intuitive UI.
[](Resources/demo.gif)
- Requirements
- Installation Guide
- Cocoapods
- Swift Package Manager
- Flow Setup
- With Storyboard
- Programmatically
- Delegation
- Customization
- More Tab
- Light/Dark Mode Support
- Options Customization
- Animation Types
- Indicator Types
- Examples
- Support
- Let us know!
- License
Requirements
- iOS 11.0 +
- Swift 5.﹡
- XCode 10 +
Installation
ExpandedTabBar doesn't contain any external dependencies.
These are currently the supported intllation options:
CocoaPods
To integrate ExpandedTabBar into your Xcode project using CocoaPods, specify it in your Podfile
:
use_frameworks!
target '<Your Target Name>' do
pod 'ExpandedTabBar'
end
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler. It is in early development, but appstore-card-transition does support its use on supported platforms.
Once you have your Swift package set up, adding ExpandedTabBar as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/yervandsar/ExpandedTabBar", from: "3.0.1")
]
Or you can checkout Adding Package Dependencies to Your App by **Apple**
Flow Setup
- #### With Storyboard
- Create
UITabBarController
- Extend from
ExpandedTabBarController
Set to
UITabBarController
in storyboardProgrammatically
let viewControllers: [UIViewController] = [...] // Array of view controllers for UITabBarController let expandedTabBar = ExpandedTabBarController() expandedTabBar.setup(viewControllers: viewControllers)
NOTE: any
UIViewController
inviewControllers
array must havetabBarItem
.
Delegation
For tab selection action implement ExpandedTabBarControllerDelegate
:
func expandedTabBarController(
_ tabBarController: UITabBarController,
didSelect viewController: UIViewController,
withItem tabBarItem: UITabBarItem?
)
Customization
- #### More Tab
You can customize more tab in storyboard, or set programmatically.
swift moreTitle : String // Default "More" moreIcon : UIImage? // Default Image from SystemItem.More moreSelectedIcon : UIImage? // Default nil
- #### Dark Mode Support
ExpandedTabBar is fully Light/Dark mode supported and for setting any
UIColor
orCGColor
you can use.swift let color: UIColor/CGColor = .pattern(light: UIColor, dark: UIColor)
NOTE: If device OS version does not support dark mode, it will take light as default. - #### Options Customization ExpandedTabBar options conforms to Options protocol.
public protocol Options {
var background : BackgroundOptions
var container : ContainerOptions
var animationType: AnimationType
var indicatorType: IndicatorTypes
}
Background Options
public protocol BackgroundOptions {
var color : UIColor // Default .clear
var alpha : CGFloat // Default 0.3
var closeOnTap: Bool // Default true
}
Container Options
public protocol ContainerOptions {
var color : UIColor // Default .pattern(light: .white, dark: .black)
var alpha : CGFloat // Default 1.0
var cornerRadius : CGFloat // Default 10
var roundedCorners: UIRectCorner // Default .allCorners
var bottomMargin : CGFloat // Default 15
var tabSpace : CGFloat // Default 8
var tab : ContainerTabOptions
var shadow : ShadowOptions? // Default nil
}
NOTE: For shadow you can see and use ShadowDefaultOptions
class
Container's Tab Options
public protocol ContainerTabOptions {
var itemHeight : CGFloat. // Default 35
var titleFont : UIFont // Default .systemFont(ofSize: 16)
var titleColor : UIColor // Default .pattern(light: .black, dark: .white)
var iconColor : UIColor // Default .pattern(light: .black, dark: .white)
var iconContentMode: UIView.ContentMode // Default .scaleAspectFit
var iconTitleSpace : CGFloat // Default 8
}
Animation Types
| NoneAnimations | Translate | Zoom | Rotate |
:--------------------:|:-----------:|:--------:|:--------:|
|.none
|.top
Default|.zoomIn
|.rotatePositive
|
|[](Resources/none.gif)|[](Resources/top.gif)|[](Resources/zoomIn.gif)|[](Resources/rotatePositive.gif)|
|.crossDissolve
|.bottom
|.zoomOut
|.rotateNegative
|
|[](Resources/crossDissolve.gif)|[](Resources/bottom.gif)|[](Resources/zoomOut.gif)|[](Resources/rotateNegative.gif)|
| |.left
|.zoomX
|.rotate(angle: .pi/6)
|
| |[](Resources/left.gif)|[](Resources/zoomX.gif)|[](Resources/rotate.gif)|
| |.right
|.zoomY
| |
| |[](Resources/right.gif)|[](Resources/zoomY.gif)| |
NOTE: You can create your own animation .custom(AnimationProtocol)
. You can use TransformAnimation for creating custom animations
Indicator Types
.none |
.connectedLine |
.triangle Default |
---|---|---|
[](Resources/none.png) | [](Resources/connectedLine.png) | [](Resources/triangle.png) |
Examples
final class CustomViewController: ExpandedTabBarController {
override func viewDidLoad() {
super.viewDidLoad()
expandedDelegate = self
expandedTabBarOptions = customOptions
}
private var customOptions: Options {
var options = ExpandedTabBarOptions()
options.indicatorType = .connectedLine
options.animationType = .custom(customAnimation)
options.container.roundedCorners = [.topLeft, .topRight, .bottomLeft]
options.container.cornerRadius = 20
options.container.shadow = ShadowDefaultOptions()
options.container.tabSpace = 15
options.container.tab.iconTitleSpace = 15
return options
}
private var customAnimation: AnimationProtocol {
let transform = CGAffineTransform(scaleX: 0.1, y: 0.1).rotated(by: .pi)
return TransformAnimation(transform: transform)
}
}
extension CustomViewController: ExpandedTabBarControllerDelegate {
func expandedTabBarController(_ tabBarController: UITabBarController,
didSelect viewController: UIViewController,
withItem tabBarItem: UITabBarItem?) {
// Do some logic here
}
}
Support
Feel free to open issuses with any suggestions, bug reports, feature requests, questions.
Let us know!
We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the animation.
License
The MIT License (MIT)
Copyright (c) 2018 Yervand Saribekyan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the ExpandedTabBar README section above
are relevant to that project's source code only.