LGV_SwipeTabViewControllerType
public protocol LGV_SwipeTabViewControllerType : UIViewController
Any view controller that we add to our tab controller, should conform to this protocol.
-
This references the “owning”
LGV_SwipeTabViewControllerinstance. It is required, and should usually be implemented as a weak reference.Declaration
Swift
var mySwipeTabViewController: LGV_SwipeTabViewController? { get set } -
myTabItemDefault implementationAn accessor for the tab item. This may return nil, but the tab controller won’t add your view controller, if it does not have it.
Default Implementation
Default fetches any preexisting tab bar item.
Declaration
Swift
var myTabItem: UITabBarItem? { get } -
indexDefault implementationReturns the 0-based index of this controller, in its wrapper.
Default Implementation
Returns the 0-based index of this controller, in its wrapper. -1, if not found.
Declaration
Swift
var index: Int { get } -
myMainNavigationControllerDefault implementationAn accessor for the “owner’s” navigation controller.
Default Implementation
This is the navigation controller for the main “owner” instance. This allows us to have continuity with the container.
Declaration
Swift
var myMainNavigationController: UINavigationController? { get }
View on GitHub