---
title: selectedTabViewItemIndex
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstabviewcontroller/selectedtabviewitemindex
---

# selectedTabViewItemIndex

The index of the selected tab.

## Declaration

```swift
var selectedTabViewItemIndex: Int { get set }
```

## Discussion

Discussion Use this property to get and set the selected tab. The property is key-value coding compliant and can be the target of bindings.

## See Also

### Managing Tab View Items

- [tabViewItems](appkit/nstabviewcontroller/tabviewitems.md)
- [tabViewItem(for:)](appkit/nstabviewcontroller/tabviewitem(for:).md)
- [addTabViewItem(_:)](appkit/nstabviewcontroller/addtabviewitem(_:).md)
- [insertTabViewItem(_:at:)](appkit/nstabviewcontroller/inserttabviewitem(_:at:).md)
- [removeTabViewItem(_:)](appkit/nstabviewcontroller/removetabviewitem(_:).md)
