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

# init(title:image:tag:)

Creates a tab bar item that displays a title and an image.

```
convenience init(title: String?, image: UIImage?, tag: Int)
```

## Parameters

`title`

The item’s title.

`image`

The item’s source image.

`tag`

An integer you use to identify the object.

## Discussion

Use `nil` for `title` or `image` to not display that element.

By default, the item displays the same image regardless of its selected state. To display a different image for the selected state, set its [`selectedImage`](/documentation/UIKit/UITabBarItem/selectedImage) property. The item creates the images it displays from the alpha values in the source images. To prevent system tinting, use images with the [`UIImage.RenderingMode.alwaysOriginal`](/documentation/UIKit/UIImage/RenderingMode-swift.enum/alwaysOriginal) rendering mode. The item clips any image that’s larger than its bounds.

---

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)