init(appearanceNamed:bundle:)
Creates an appearance object from the named appearance file located in the specified bundle.
Declaration
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
nilto search for the appearance file in the main bundle.
Return Value
An initialized appearance object, or nil if an error occurs.