init(named:)
Creates an appearance object based on the name of one of the standard system appearances.
Declaration
init?(named name: NSAppearance.Name)Parameters
- name:
The name of a standard appearance. See Name Swift.struct for the list of standard appearance names.
Return Value
A standard NSAppearance object.
Discussion
When you specify a standard appearance name—such as aqua—this method returns a built-in appearance.