I'm very happy with the new badge property of UIBarButtonItem, but unfortunately it doesn't work yet on a UIToolbar object.
The following code does change the tint color of the button to pink, which proves the button object exists, but there is no visible badge after running the code:
if let button = toolbarItems?.first {
button.badge = .count(123) // Does nothing
button.tintColor = .systemPink // Works
}
Do I overlook something, or is this just not implemented yet? Or is this limitation 'by design'? (That would be a MAJOR disappointment)