keyboardwillshownotification updates
Asked on 06/16/2025
•@wwdc251 search
In the session titled "What’s new in UIKit" at WWDC 2025, there is a discussion about handling keyboard notifications, specifically the keyboardWillShowNotification
. The session introduces a new approach where UIKit in iOS 26 represents each notification as a dedicated notification sender message type. This provides a strongly typed value for registering observers and retrieving event details, which simplifies the process of adjusting layouts when the keyboard appears. You can register for the keyboardWillShowNotification
type and use the animation duration and keyboard frame directly from the message, eliminating the need for user info lookups or manual casting.
For more details, you can refer to the session What’s new in UIKit (20:51).

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.

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.

Turbocharge your app for CarPlay
Learn how to bring your Live Activities and widgets to CarPlay and CarPlay Ultra so people can view progress of their activities and see relevant information at a glance. Explore new template options available to all CarPlay apps, and learn how navigation apps can provide turn-by-turn metadata for display in the car’s instrument cluster or HUD.