Index

RBTabController.swift

Protocols

Classes


RBTabController

A tab bar controllers that manages pages with tabs.

Properties

A delegate to receive tab page selection events.
public weak var delegate RBTabControllerDelegate? { get set }

The animator that is used to provide animated transitions.
public var animator RBNavigationAnimator? { get set }

A tab bar
public var tabBar RBTabBar? { get set }

Animator to be used when showing or hiding the tabBar.
public var tabBarAnimator RBAnimator { get set }

Whether or not the tabBar is hidden.
public var tabBarIsHidden Bool { get }

The number of tab pages currently in the container.
public var viewControllers [UIViewController] { get set }

Gets the selected tab page via the index. Returns < 0 if a page is not set.
public var selectedIndex Int { get }

Gets the selected tab page.
public var selectedViewController UIViewController? { get }

open var childViewControllerForStatusBarHidden UIViewController? { get }

open var childViewControllerForStatusBarStyle UIViewController? { get }

Functions

public func setViewController(vc: UIViewController, completion: (() -> Void)?)

public func setViewController(vc: UIViewController, animator: RBNavigationAnimator?, completion: (() -> Void)?)

public func hideTabBar(hide: Bool, animated: Bool)

Called to notify that a tab will be selected.
@param vc : The view controller.
@param animated : Whether or not the transition to the page will be animated.
public func tabBarShouldSelect(vc: UIViewController, animated: Bool) -> Bool

Called to notify that a tab was selected.
@param vc : The view controller.
@param animated : Whether or not the transition to the page will be animated.
public func tabBarDidSelect(vc: UIViewController, animated: Bool)