---
title: "init(named:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscolor/init(named:)"
---

# init(named:)

Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app’s main bundle.

## Declaration

```swift
init?(named name: NSColor.Name)
```

## Parameters

- `name`: The name of the color in the asset catalog.

## See Also

### Loading color objects from asset catalogs

- [init(named:bundle:)](appkit/nscolor/init(named:bundle:).md)
- [init(catalogName:colorName:)](appkit/nscolor/init(catalogname:colorname:).md)
- [NSColor.Name](appkit/nscolor/name.md)
