SwiftUITabBarController

open class SwiftUITabBarController : UITabBarController, UITabBarControllerDelegate

The default TabBarController used by AltSwiftUI.

Subclass this class if you want to add custom behavior to the UITabBarController and add it to UIHostingController.customRootTabBarController.

  • Declaration

    Swift

    override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
  • Declaration

    Swift

    public required init?(coder: NSCoder)
  • Declaration

    Swift

    override open var selectedIndex: Int { get set }

Delegate

  • Declaration

    Swift

    override open func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem)