---
title: slider
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsslidertouchbaritem/slider
---

# slider

The slider displayed by the bar item.

## Declaration

```swift
var slider: NSSlider { get set }
```

## Discussion

Discussion The slider is automatically created by the item, but you can provide a custom subclass to this property to customize behavior.

## See Also

### Configuring the slider

- [label](appkit/nsslidertouchbaritem/label.md)
- [view](appkit/nsslidertouchbaritem/view.md)
