Does UIBarButtonItem have a new badge property?

Asked on 06/12/2025

1 search

Yes, UIBarButtonItem has a new badge property. This is part of the new badging API introduced in UIKit, which allows you to display a badge on a bar button item. The badge can be updated using the new updateProperties method, which is designed to work with observable model objects. This method helps in updating the badge whenever the observable model object changes, improving performance by avoiding unnecessary layout updates. You can learn more about this in the session What’s new in UIKit.