<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITab/init(title:image:identifier:viewControllerProvider:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITab(im)initWithTitle:image:identifier:viewControllerProvider:"
  },
  "title" : "init(title:image:identifier:viewControllerProvider:)"
}
-->

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

Creates a tab object.

```
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`](/documentation/UIKit/UITabBarController).

`viewControllerProvider`

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)