<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSliderCell/sliderType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSliderCell(py)sliderType"
  },
  "title" : "sliderType"
}
-->

# sliderType

The slider type, either linear or circular.

```
var sliderType: NSSlider.SliderType { get set }
```

## Discussion

The value of this property is a constant indicating the type of the slider. Possible values are described in [`NSSlider.SliderType`](/documentation/AppKit/NSSlider/SliderType-swift.enum).

When the value of this property is `NSCircularSlider`, then you get a fixed-size circular slider. The minimum value ([`minValue`](/documentation/AppKit/NSSliderCell/minValue)) is at the top, and the value increases clockwise around the dial. The maximum selectable value is just below [`maxValue`](/documentation/AppKit/NSSliderCell/maxValue); for example, if [`maxValue`](/documentation/AppKit/NSSliderCell/maxValue) is 360, you can set the dial up to 359.999.

You can use the [`numberOfTickMarks`](/documentation/AppKit/NSSliderCell/numberOfTickMarks) property to display tick marks, and you can use the [`allowsTickMarkValuesOnly`](/documentation/AppKit/NSSliderCell/allowsTickMarkValuesOnly) property to specify that values are limited to those values represented by tick marks. You can set this control to regular or small sizes; the mini size is not supported.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)