Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.01 KB

File metadata and controls

35 lines (23 loc) · 1.01 KB

Badge

Badges are UI elements made up by a small red oval which may contain a white number. The number range goes from 1 to 9, for a number higher than 9 the text stays as "+9".

Usage

Create an instance of BadgeView with the style required.

let badgeView = BadgeView(style: .flag)

For use the same Badge in a tab bar

let item = createNovumTabBarItem(badgeValue: 9)

If the style selected is Numeric, you can use the value variable to specify the badge value.

Styles

Badges come in two flavors. Flag and Numeric.

Flag
Flag
Numeric
Numeric
Tab Bar Item
Numeric