Contents

UITab

An object that manages a tab in a tab bar.

Declaration

@MainActor class UITab

Mentioned in

Overview

To create a tab, call init(title:image:identifier:viewControllerProvider:). In the closure, return the view controller your app presents when someone selects the tab. Then pass an array of tabs to your UITabBarController object’s tabs property.

For more information, see Elevating your iPad app with a tab bar and sidebar.

Topics

Creating tabs

Accessing a tab’s appearance

Managing customization

Accessing context

Instance Properties

See Also

Container view controllers