<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColor/init(named:bundle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColor(cm)colorNamed:bundle:"
  },
  "title" : "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.

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

## Parameters

`name`

The name of the color to find.

`bundle`

The app bundle.

---

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)