Contents

badgeTextAttributes(for:)

Returns the badge’s text attributes for the specified state.

Declaration

func badgeTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?

Parameters

Discussion

Use this method to retrieve the attributes the item applies to its badge’s value for the specified state. For a list of attributes, see NSAttributedString.Key.

See Also

Configuring the item’s badge