Instance Property

badgeValue

Text that is displayed in the upper-right corner of the item with a surrounding red oval.

Declaration

var badgeValue: String? { get set }

Discussion

The default value is nil.

See Also

Configuring the Badge

var badgeColor: UIColor?

The background color to apply to the badge.

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

Retrieves the custom text attributes associated with the item's badge text.