Contents

tabBarController(_:shouldSelectTab:)

Asks the delegate whether the specified tab should be made active.

Declaration

optional func tabBarController(_ tabBarController: UITabBarController, shouldSelectTab tab: UITab) -> Bool

Discussion

Return @c YES if the specified @c tab can be selected by the user. Otherwise, return @c NO