nsnotification in wwdc25
Asked on 2025-06-24
1 search
In WWDC 2025, there were updates related to notifications, particularly in the context of Swift and UIKit.
In the session titled "What’s new in Swift," it was mentioned that notification names and payloads now support concrete types. This allows the compiler to check that the object supports the notification kind you're registering for, reducing boilerplate code and potential errors when working with notification payloads. This update is part of the broader improvements in Swift 6.2, which also includes enhancements to the Observation Library for tracking state changes. You can find more details in the session What’s new in Swift (11:33).
In the session "What’s new in UIKit," there is a mention of a new API for notifications. UIKit in iOS 26 now represents each notification as a dedicated notification sender message type, providing a strongly typed value for registering observers and retrieving event details. This change aims to modernize and simplify the way notifications are handled in UIKit. More information can be found in the session What’s new in UIKit (20:38).
These updates are part of Apple's ongoing efforts to improve the developer experience by making APIs more robust and less error-prone.

What’s new in Swift
Join us for an update on Swift. We’ll talk about workflow improvements that make you more productive, and new and modernized library APIs for fundamental programming tasks. We’ll show examples of Swift adoption throughout more layers of the software stack. Finally, we’ll explore new language features for both improving approachability of concurrency, and achieving peak performance when you need it.

What’s new in widgets
WidgetKit elevates your app with updates to widgets, Live Activities, and controls. Learn how to bring your widgets to visionOS, take them on the road with CarPlay, and make them look their best with accented rendering modes. Plus, find out how relevant widgets can be surfaced in the Smart Stack on watchOS, and discover how push notifications can be used to keep your widgets up to date.

Welcome to WWDC25
There’s so much to dive into at WWDC25. Here’s a quick guide to help get you started.