DevTechie
Published in

DevTechie

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store