ESTabBarController alternatives and similar libraries
Based on the "Tab Bar" category.
Alternatively, view ESTabBarController 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 -
ExpandedTabBar
ExpandedTabBar is a very creative designed solution for "more" items in UITabBarController. It's greate experience to have more comfortable and intuitive UI. -
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 ESTabBarController or a related project?
README
ESTabBarController
ESTabBarController
is a custom tab bar controller for iOS. It has a tab indicator that moves animated along the bar when switching between tabs. It also provides the capability of running actions associated with the tab bar buttons.
Compatible with iOS 7.0 and above.
Installation
Simply add ESTabBarController
to your Podfile
:
pod 'ESTabBarController'
Usage
Initialization
ESTabBarController
is initialized with an array of images that represent icons for the buttons in the tab bar:
ESTabBarController *tabBarController = [[ESTabBarController alloc] initWithTabIcons:@[[UIImage imageNamed:@"firstIcon"],
[UIImage imageNamed:@"secondIcon"],
[UIImage imageNamed:@"thirdIcon"]]];
If the images are all loaded from the main bundle, a convenience initializer can be used:
ESTabBarController *tabBarController = [[ESTabBarController alloc] initWithTabIconNames:@[@"firstIcon", @"secondIcon", @"thirdIcon"]];
View controllers
View controllers are set in the way:
[tabBarController setViewController:myFirstViewController
atIndex:0];
[tabBarController setViewController:mySecondViewController
atIndex:2];
Note that it is possible to have an index without an associated view controller. This can be useful when having a button that performs an action but does not switch to a view controller.
Actions
ESTabBarController
allows performing actions when pressing a button in the tab bar:
[tabBarController setAction:^{
// Perform an action.
} atIndex:1];
If there is also a controller associated with the index for an action, this is performed immediately after switching to the controller.
Highlighted buttons
ESTabBarController
allows having highlighted buttons. These are displayed in a different way, and are useful when trying to give more importance to a view controller or action.
[tabBarController highlightButtonAtIndex:1];
Colors
ESTabBarController
provides a way to customize two colors:
- The color of the selected buttons and the selection indicator:
objc tabBarController.selectedColor = [UIColor redColor]; // Any color.
- The background color of the buttons:
objc tabBarController.buttonBackgroundColor = [UIColor grayColor]; // Any color.
Example
More usage information can be found in the Example project.
License
This library is available under the MIT license.
*Note that all licence references and agreements mentioned in the ESTabBarController README section above
are relevant to that project's source code only.