---
title: "init(appearanceNamed:bundle:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsappearance/init(appearancenamed:bundle:)"
---

# init(appearanceNamed:bundle:)

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

## Declaration

```swift
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

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

## See Also

### Creating an Appearance

- [init(named:)](appkit/nsappearance/init(named:).md)
- [init(coder:)](appkit/nsappearance/init(coder:).md)
