New in SwiftUI 3: Badges in SwiftUI 3 and iOS 15

SwiftUI 3 and release of iOS 15 added native support for badges. Badge play a significant role in my apps today. Before the release of SwiftUI 3, badge support would require custom implementation but with the introduction of .badge modifier, adding badge is easier than ever.

Badges in iOS are displayed in list rows or tab bars. They are used to convey supplementary information about the view. Badge content is short, most of the times it’s a number or a single word.