Currently, I'm trying to set the green dot this way, but end result is always a red badge.
xxxx.tabBarItem.badgeColor = .clear
xxxx.tabBarItem.badge value = "●"
let attribute : [NSAttributedString.Key : Any] = [NSAttributedString.Key.foregroundColor : UIColor.green]
xxxx.tabBarItem.setBadgeTextAttributes(attribute, for: .disabled)
xxxx.tabBarItem.setBadgeTextAttributes(attribute, for: .selected)
xxxx.tabBarItem.setBadgeTextAttributes(attribute, for: .highlighted)
xxxx.tabBarItem.setBadgeTextAttributes(attribute, for: .normal)
What do I want?