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.

What’s new in UIKit
Modernize your app with the latest APIs in UIKit, including enhanced menu bar support, automatic observation tracking, a new UI update method, and improvements to animations. We’ll also cover how you can include SwiftUI scenes in your UIKit app and explore SF Symbols, HDR color pickers, and more.

Build a SwiftUI app with the new design
Explore the ways Liquid Glass transforms the look and feel of your app. Discover how this stunning new material enhances toolbars, controls, and app structures across platforms, providing delightful interactions and seamlessly integrating your app with the system. Learn how to adopt new APIs that can help you make the most of Liquid Glass.

Build a UIKit app with the new design
Update your UIKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.