UITabBarController

extension UITabBarController
  • Select a tab item matched with a given view controller type.

    Declaration

    Swift

    public func selectTab(with viewControllerType: UIViewController.Type)
  • Find the first view controller of the given type in the tabbar and in the tabbar/navigation controllers.

    Declaration

    Swift

    public func find<T>(viewControllerType: T.Type) -> T? where T : UIViewController