tabBarController(_:shouldSelectTab:)
Asks the delegate whether the specified tab should be made active.
Declaration
optional func tabBarController(_ tabBarController: UITabBarController, shouldSelectTab tab: UITab) -> BoolDiscussion
Return @c YES if the specified @c tab can be selected by the user. Otherwise, return @c NO