---
title: "addTabViewItem(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstabview/addtabviewitem(_:)"
---

# addTabViewItem(_:)

Adds the specified tab item.

## Declaration

```swift
func addTabViewItem(_ tabViewItem: NSTabViewItem)
```

## Parameters

- `tabViewItem`: The tab view item to be added.

## Discussion

Discussion The item is added at the end of the array of tab items, so the new tab appears on the right side of the view. If the delegate supports it, it invokes the delegate’s tabViewDidChangeNumberOfTabViewItems(_:) method.

## See Also

### Related Documentation

- [Tab View Programming Topics](apple-archive/documentation/Cocoa/Conceptual/TabView.md)
- [tabViewItem(at:)](appkit/nstabview/tabviewitem(at:)-7r3at.md)
- [numberOfTabViewItems](appkit/nstabview/numberoftabviewitems.md)
- [tabViewItems](appkit/nstabview/tabviewitems.md)

### Adding and Removing Tabs

- [insertTabViewItem(_:at:)](appkit/nstabview/inserttabviewitem(_:at:).md)
- [removeTabViewItem(_:)](appkit/nstabview/removetabviewitem(_:).md)
