Contents

attributedTitle

The title that the button displays in an off state, as an attributed string.

Declaration

@NSCopying var attributedTitle: NSAttributedString { get set }

Discussion

This property contains an string of class NSAttributedString, which appears on the button when the button is in an off state. If the button doesn’t display a title, then this property contains an empty attributed string.

A button’s title is always displayed if the button doesn’t use its alternate contents for highlighting or displaying the on state. By default, a button’s title is Button.

See Also

Configuring buttons