Contents

init(title:image:identifier:viewControllerProvider:)

Creates a tab object.

Declaration

init(title: String, image: UIImage?, identifier: String, viewControllerProvider: ((UITab) -> UIViewController)? = nil)

Parameters

  • title:

    The tab’s title.

  • image:

    The tab’s image.

  • identifier:

    An identifier string for the tab. Each identifier must be unique across all the tabs managed by a Uitabbarcontroller.

  • viewControllerProvider:

    The view controller that the system presents when someone selects the tab.

Mentioned in