<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorList/init(named:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColorList(cm)colorListNamed:"
  },
  "title" : "init(named:)"
}
-->

# init(named:)

Searches the available color lists array and returns the color list with the specified name.

```
init?(named name: NSColorList.Name)
```

## Parameters

`name`

The name of the color list to retrieve. This name must not include the “`.clr`” suffix.

## Return Value

The color list with the specified name or `nil` if no such color list exists.

## See Also

[`name`](/documentation/AppKit/NSColorList/name-swift.property)

The name of the color list.



---

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)