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

# init(named:bundle:)

Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle.

## Declaration

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

## Parameters

- `name`: The name of the color to find.
- `bundle`: The app bundle.

## See Also

### Loading color objects from asset catalogs

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