Protocol

NSAppearanceCustomization

A set of methods for getting and setting the appearance attributes of a view.

Overview

When an object adopts this protocol, assigning a value to the appearance property causes that object to use the appearance attributes you specified instead of any inherited attributes. You can access the current attributes for the object from the effectiveAppearance property, which reflects any inherited attributes.

Topics

Getting and Setting Appearance

Choosing a Specific Appearance for Your App

Override the system appearance when needed to implement the interface style that makes sense for your app.

var appearance: NSAppearance?

The appearance of the receiver, in an NSAppearance object.

Required.

var effectiveAppearance: NSAppearance

The appearance that will be used when the receiver is drawn onscreen, in an NSAppearance object. (read-only)

Required.

Relationships

Inherits From

See Also

Appearance Customization

Supporting Dark Mode in Your Interface

Adopt a dark appearance in addition to the standard light appearance.

class NSAppearance

An object that manages standard appearance attributes for UI elements in an app.