---
title: "init(itemIdentifier:uiView:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/nsuiviewtoolbaritem/init(itemidentifier:uiview:)"
---

# init(itemIdentifier:uiView:)

Creates a toolbar item with the identifier and underlying UIKit view you specify.

## Declaration

```swift
init(itemIdentifier identifier: NSToolbarItem.Identifier, uiView: UIView)
```

## Parameters

- `identifier`: 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.
- `uiView`: The UIKit view for the toolbar item.
