---
title: isVertical
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsslider/isvertical
---

# isVertical

An integer indicating the orientation (horizontal or vertical) of the slider.

## Declaration

```swift
var isVertical: Bool { get set }
```

```swift
var vertical: Bool { get set }
```

## Discussion

Discussion The value of this property is 1 if the slider is vertical, 0 if it’s horizontal, and -1 if the orientation is unknown (for example, if the slider hasn’t been displayed yet). A slider is defined as vertical if its height is greater than its width.

## See Also

### Managing the slider’s appearance

- [sliderType](appkit/nsslider/slidertype-swift.property.md)
- [NSSlider.SliderType](appkit/nsslider/slidertype-swift.enum.md)
- [altIncrementValue](appkit/nsslider/altincrementvalue.md)
- [knobThickness](appkit/nsslider/knobthickness.md)
- [trackFillColor](appkit/nsslider/trackfillcolor.md)
- [tintProminence](appkit/nsslider/tintprominence.md)
- [NSTintProminence](appkit/nstintprominence.md)
