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

# init(identifier:formatter:)

Creates a NSStepperTouchBarItem with a formatter to display the stepper’s value as text.

## Declaration

```swift
convenience init(identifier: NSTouchBarItem.Identifier, formatter: Formatter)
```

## Parameters

- `formatter`: A formatter used to display a textual representation of the stepper’s value

## See Also

### Creating a stepper item

- [init(identifier:drawingHandler:)](appkit/nssteppertouchbaritem/init(identifier:drawinghandler:).md)
