UIBarButtonItem
public extension UIBarButtonItem
-
Undocumented
Declaration
Swift
convenience init(icon: String?, action: Selector?, target: AnyObject?)
-
Undocumented
Declaration
Swift
func setBadgeValue(_ count: Int)
-
Configures a badge to the bar button item.
Example of usage:
let badge = NatBadge(style: .standard, color: .primary) badge.configure(limit: .max99) badge.configure(count: 100) barButtonItem.configure(badge: badge)
Declaration
Swift
func configure(badge: NatBadge)
Parameters
badge
A badge from the design system. The badge must be created and configured before setting it to the icon button.