---
title: "init(identifier:title:image:target:action:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsbuttontouchbaritem/init(identifier:title:image:target:action:)"
---

# init(identifier:title:image:target:action:)

## Declaration

```swift
convenience init(identifier: NSTouchBarItem.Identifier, title: String, image: UIImage, target: Any?, action: Selector?)
```

```swift
convenience init(identifier: NSTouchBarItem.Identifier, title: String, image: NSImage, target: Any?, action: Selector?)
```

## See Also

### Creating a button item

- [init(identifier:image:target:action:)](appkit/nsbuttontouchbaritem/init(identifier:image:target:action:).md)
- [init(identifier:title:target:action:)](appkit/nsbuttontouchbaritem/init(identifier:title:target:action:).md)
