---
title: "setPickerMode(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nscolorpanel/setpickermode(_:)"
---

# setPickerMode(_:)

Specifies the color panel’s initial picker.

## Declaration

```swift
class func setPickerMode(_ mode: NSColorPanel.Mode)
```

## Parameters

- `mode`: A constant specifying which color picker mode is initially visible. This is one of the symbolic constants described in Color Panel Modes.

## Discussion

Discussion This method may be called at any time, whether or not an application’s NSColorPanel has been instantiated.

## See Also

### Setting color picker modes

- [mode](appkit/nscolorpanel/mode-swift.property.md)
- [NSColorPanel.Mode](appkit/nscolorpanel/mode-swift.enum.md)
- [setPickerMask(_:)](appkit/nscolorpanel/setpickermask(_:).md)
- [NSColorPanel.Options](appkit/nscolorpanel/options.md)
