---
title: "init(identifier:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstoolbar/init(identifier:)"
---

# init(identifier:)

Creates a newly allocated toolbar with the specified identifier.

## Declaration

```swift
init(identifier: NSToolbar.Identifier)
```

## Parameters

- `identifier`: A string used by the class to identify the kind of the toolbar.

## Return Value

Return Value The initialized toolbar object.

## Discussion

Discussion identifier is never seen by users and should not be localized. See the identifier property for important information.

## See Also

### Related Documentation

- [identifier](appkit/nstoolbar/identifier-swift.property.md)

### Creating an toolbar object

- [init()](appkit/nstoolbar/init().md)
