---
title: "availableColorSpaces(with:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nscolorspace/availablecolorspaces(with:)"
---

# availableColorSpaces(with:)

Returns the list of color spaces available on the system that are displayed in the color panel, in the order they are displayed in the color panel.

## Declaration

```swift
class func availableColorSpaces(with model: NSColorSpace.Model) -> [NSColorSpace]
```

## Parameters

- `model`: The model to return the color spaces for.

## Return Value

Return Value The list of color spaces, or an empty array if no color spaces are available for the specified model.

## Discussion

Discussion This method doesn’t return color spaces created on the fly or spaces without user-displayable names. Pass NSUnknownColorSpaceModel as model to get all available color spaces.
