---
title: "tab(forIdentifier:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontroller/tab(foridentifier:)"
---

# tab(forIdentifier:)

Returns the tab matching the specified identifier in the tab bar controller’s tabs. Returns nil if no tab is found matching the identifier.

## Declaration

```swift
func tab(forIdentifier identifier: String) -> UITab?
```

## See Also

### Accessing the tab bar controller properties

- [tabBar](uikit/uitabbarcontroller/tabbar.md)
