---
title: gradientType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbuttoncell/gradienttype
---

# gradientType

The gradient of the button’s border.

## Declaration

```swift
var gradientType: NSButton.GradientType { get set }
```

## Discussion

Discussion The value of this property is a constant that specifies the gradient used for the button’s border. See NSButton.GradientType for a list of possible values. If the button has no border, setting this property has no effect on the button’s appearance. A concave gradient is darkest in the top-left corner; a convex gradient is darkest in the bottom-right corner. Weak versus strong is how much contrast exists between the colors used in opposite corners. note: This property is currently unused by AppKit and has no effect.

## See Also

### Managing Graphics Attributes

- [backgroundColor](appkit/nsbuttoncell/backgroundcolor.md)
- [bezelStyle](appkit/nsbuttoncell/bezelstyle.md)
- [imageDimsWhenDisabled](appkit/nsbuttoncell/imagedimswhendisabled.md)
- [isOpaque](appkit/nsbuttoncell/isopaque.md)
- [isTransparent](appkit/nsbuttoncell/istransparent.md)
- [showsBorderOnlyWhileMouseInside](appkit/nsbuttoncell/showsborderonlywhilemouseinside.md)
