min

MinimalTabBar

MinimalTabBar is an elegant replacement for the standard UITabBar found on iOS. It includes optional navigation gestures to improve UX and reduce the UI footprint. Like the UITabBar, implimentation requires an array of ViewControllers and UITabBar items.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

153

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

CI Status Version License Platform

MinimalTabBar

A new, and elegant, solution to the TabBar on iOS. MinimalTabBar gets it's name by hiding once you have selected an item, leaving your UIViewControllers uncluttered.

Demo

For a useable demo please look at the repo MinimalTabBarDemo

Gestures

The MinimalTabBar has a number of gestures to allow unique user-interaction. While minimized the user has three seperate gestures to control navigation.

  • Tap Opens the MinimalTabBar
  • Swipe Slides the user between adjacent UIViewControllers
  • Long Press Gives the user a complete look at the app

Implimentation

Implimentation mirrors Apple's UITabBar very closely. Assuming your UIViewControllers have UITabBar items it's only two steps.

JDMinimalTabBarController *minimalTabBarViewController = [[JDMinimalTabBarController alloc] init];

Once you've created your MinimalTabBar assigning it UIViewControllers is easy. Use the UITabBar item's name, image, and selectedImage to control the look of each tab.

[minimalTabBarViewController setViewControllers:@[sectionOneVC, sectionTwoVC, sectionThreeVC, sectionFourVC, sectionFiveVC]];

MinimalTabBarController's MinimalBar you can set the following attributes:

  • @property (nonatomic, strong) UIColor* defaultTintColor;
  • @property (nonatomic, strong) UIColor* selectedTintColor;
  • @property (nonatomic) BOOL showTitles;
  • @property (nonatomic) BOOL hidesTitlesWhenSelected;

You can also provide the MinimalBar with a background color if you so wish

Notes

If you have any comments or run into any errors, please let me know as I am making changes frequently.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

MinimalTabBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MinimalTabBar"

Author

jamesdunay [at] gmail

License

MinimalTabBar is available under the MIT license. See the LICENSE file for more info.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100