Open onmyway133 opened 2 years ago
From iOS 13, use UITabBarAppearance and UITabBarItemAppearance
UITabBarAppearance
UITabBarItemAppearance
let appearance = UITabBarAppearance() let itemAppearance = UITabBarItemAppearance(style: .stacked) itemAppearance.normal.badgeBackgroundColor = .clear itemAppearance.normal.badgeTextAttributes = [.foregroundColor: UIColor.red] profileViewController.tabBarItem.badgeValue = "●"
From iOS 13, use
UITabBarAppearance
andUITabBarItemAppearance
Read more