---
title: currentMode()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscolorpickingcustom/currentmode()
---

# currentMode()

Returns the receiver’s current mode (or submode, if applicable).

## Declaration

```swift
@MainActor func currentMode() -> NSColorPanel.Mode
```

## Return Value

Return Value The current color picker mode. The returned value should be unique to your color picker. See this protocol description’s list of the unique values for the standard color pickers used by the Application Kit.

## See Also

### Getting Color Picker Information

- [supportsMode(_:)](appkit/nscolorpickingcustom/supportsmode(_:).md)
