FloatingTabBarController 1.0.0

FloatingTabBarController 1.0.0

Maintained by Emilio Peláez.




FloatingTabBarController

Version License Platform

Screenshot

FloatingTabBarController is a tab bar controller with sliding tabs and a custom tab bar inspired by this Dribbble shot.

Example

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

Requirements

FloatingTabBarController requires at least iOS 11.0

Installation

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

pod 'FloatingTabBarController'

Usage

Create a new instance of FloatingTabBarController and set the viewControllers property. The tab bar will be populated using the floatingTabItem property of UIViewController, which you should set.

You can create a FloatingTabItem with one or two images, it is recommended that selected images are slightly larger (35x35pt) than normal images (25x25pt). When initialized with a single image, that image will be used for both states.

You can customize the tab bar's background color and visual effect, as well as its tint color, which will reflect on the color of the icons if the images are set to render as template.

Author

EmilioPelaez, [email protected]

License

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