---
title: "supportsMode(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscolorpickingcustom/supportsmode(_:)"
---

# supportsMode(_:)

Returns a Boolean value indicating whether or not the receiver supports the specified picking mode.

## Declaration

```swift
@MainActor func supportsMode(_ mode: NSColorPanel.Mode) -> Bool
```

## Parameters

- `mode`: The color picking mode.

## Return Value

Return Value true if the color picker supports the specified color picking mode; otherwise false.

## Discussion

Discussion This method is invoked when the NSColorPanel is first initialized: It is used to attempt to restore the user’s previously selected mode. It is also invoked by NSColorPanel‘s mode method to find the color picker that supports a particular mode. See this protocol description’s list of the unique mode values for the standard color pickers used by the Application Kit.

## See Also

### Getting Color Picker Information

- [currentMode()](appkit/nscolorpickingcustom/currentmode().md)
