<!--
{
  "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/UITabBarDelegate/tabBar(_:didSelect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITabBarDelegate(im)tabBar:didSelectItem:"
  },
  "title" : "tabBar(_:didSelect:)"
}
-->

# tabBar(_:didSelect:)

Sent to the delegate when the user selects a tab bar item.

```
optional func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem)
```

## Parameters

`tabBar`

The tab bar that is being customized.

`item`

The tab bar item that was selected.

---

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)