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

# gradientType

The gradient of the button’s border.

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

## Discussion

The value of this property is a constant that specifies the gradient used for the button’s border. See [`NSButton.GradientType`](/documentation/AppKit/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.

---

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)