<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarController/tabBar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITabBarController(py)tabBar"
  },
  "title" : "tabBar"
}
-->

# tabBar

The tab bar view associated with this controller.

```
var tabBar: UITabBar { get }
```

## Discussion

You should never attempt to manipulate the [`UITabBar`](/documentation/UIKit/UITabBar) object itself stored in this property. If you attempt to do so, the tab bar view throws an exception. To configure the items for your tab bar interface, you should instead assign one or more custom view controllers to the [`viewControllers`](/documentation/UIKit/UITabBarController/viewControllers) property. The tab bar collects the needed tab bar items from the view controllers you specify.

The tab bar view provided by this property is only for situations where you want to display an action sheet using the [`show(from:)`](/documentation/UIKit/UIActionSheet/show(from:)-9i3tw) method of the [`UIActionSheet`](/documentation/UIKit/UIActionSheet) class.

---

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)