Instance Property


The background color to apply to the badge.


@NSCopying var badgeColor: UIColor? { get set }


If you do not specify a value for this property, the tab bar item uses a red background color for badges.

See Also

Configuring the Badge

var badgeValue: String?

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

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

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