---
title: identifier
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/identifier-swift.property
---

# identifier

The value you use to identify the toolbar in your app.

## Declaration

```swift
var identifier: NSToolbar.Identifier { get }
```

## Discussion

Discussion Use this property to distinguish toolbars in your app. Multiple toolbars can share the same identifier, and you might do so for windows that display similar content. When two or more toolbars share an identifier, they synchronize their state and display the same set of items. If the toolbar autosaves its contents, the system associates the configuration data with this identifier.

## See Also

### Related Documentation

- [autosavesConfiguration](appkit/nstoolbar/autosavesconfiguration.md)

### Getting the toolbar’s identity

- [NSToolbar.Identifier](appkit/nstoolbar/identifier-swift.typealias.md)
