keyboardwillshownotification updated on wwdc25
Asked on 06/16/2025
3 searches
In the WWDC 2025 session titled "What’s new in UIKit," there was an update regarding the keyboardWillShowNotification
. UIKit in iOS 26 now represents each notification as a dedicated notification sender message type. This change 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 directly pull the animation duration and keyboard frame from the message, eliminating the need for user info lookups or manual casting. This is part of a broader effort to modernize and deprecate legacy methods in UIKit.
For more details, you can refer to the session What’s new in UIKit (20:38).

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.

Keynote
Don’t miss the exciting reveal of the latest Apple software and technologies.

Platforms State of the Union
Discover the newest advancements on Apple platforms.