badgeTextAttributes(for:)
Returns the badge’s text attributes for the specified state.
Declaration
func badgeTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?Parameters
- state:
The item’s state. For possible values, see State Swift.struct.
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.