Closed dungi closed 7 years ago
Hi, There r 2 ways to achieve:
static func customRemindStyle() -> UITabBarController {
...
if let tabBarItem = v1.tabBarItem as? ESTabBarItem {
tabBarItem.badgeValue = "New"
tabBarItem.contentView!.badgeView.badgeLabel.layer.borderWidth = 2
}
...
Thanks.
I think: tabBarItem.contentView!.badgeView.layer.borderWidth = 2 (+ Radius and color) would be better. Cause I want a border around the round background. Looks great now.
Hello, can I add a 1px border around badge-Icon? I just found how to change color and change the number.
Would be helpful, thank you