<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorPickingCustom/supportsMode(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSColorPickingCustom(im)supportsMode:"
  },
  "title" : "supportsMode(_:)"
}
-->

# supportsMode(_:)

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

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

## Parameters

`mode`

The color picking mode.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the color picker supports the specified color picking mode; otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## 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`](/documentation/AppKit/NSColorPanel/mode-swift.property) 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.

---

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)