<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAppearance/init(appearanceNamed:bundle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAppearance(im)initWithAppearanceNamed:bundle:"
  },
  "title" : "init(appearanceNamed:bundle:)"
}
-->

# init(appearanceNamed:bundle:)

Creates an appearance object from the named appearance file located in the specified bundle.

```
init?(appearanceNamed name: NSAppearance.Name, bundle: Bundle?)
```

## Parameters

`name`

The name of the appearance file to retrieve. Do not include any path information in the name.

`bundle`

The bundle in which to search for the named appearance file. Specify `nil` to search for the appearance file in the main bundle.

## Return Value

An initialized appearance object, or `nil` if an error occurs.

## Discussion

---

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)