---
title: selectedTab
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitabbarcontroller/selectedtab
---

# selectedTab

The currently selected tab, which can be a root tab or any of their descendants.

## Declaration

```swift
var selectedTab: UITab? { get set }
```

## Discussion

Discussion The default value for this property is nil.

## See Also

### Managing the selected tab

- [selectedViewController](uikit/uitabbarcontroller/selectedviewcontroller.md)
- [selectedIndex](uikit/uitabbarcontroller/selectedindex.md)
