Is it possible to add a badge value in SwiftUI in a simple way for a TabView tabItem?
Like this (normal Swift here) :
import UIKit
class TabBarController: UITabBarController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
self.tabBar.items![2].badgeValue = "7"
}
}
Thanks