---
title: "init(title:image:identifier:viewControllerProvider:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uitab/init(title:image:identifier:viewcontrollerprovider:)"
---

# init(title:image:identifier:viewControllerProvider:)

Creates a tab object.

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UITabBarController.
- `viewControllerProvider`: The view controller that the system presents when someone selects the tab.

## Mentioned in

Elevating your iPad app with a tab bar and sidebar
