---
title: "init(itemIdentifier:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstoolbaritem/init(itemidentifier:)"
---

# init(itemIdentifier:)

Creates a toolbar item with the specified identifier.

## Declaration

```swift
init(itemIdentifier: NSToolbarItem.Identifier)
```

## Parameters

- `itemIdentifier`: The identifier for the toolbar item. You use this value to identify the item within your app, so you don’t need to localize it. For example, your toolbar delegate uses this value to identify the specific toolbar item.

## Return Value

Return Value A new toolbar item.

## See Also

### Related Documentation

- [Integrating a Toolbar and Touch Bar into Your App](appkit/integrating-a-toolbar-and-touch-bar-into-your-app.md)

### Creating a toolbar item

- [init(itemIdentifier:barButtonItem:)](appkit/nstoolbaritem/init(itemidentifier:barbuttonitem:).md)
