what's new with display classes?
Asked on 08/03/2024
1 search
In the session What’s new in UIKit, Apple introduced automatic trait tracking in iOS 18. This feature simplifies the process of handling display classes by automatically updating views when traits such as the horizontal size class change. Previously, developers had to manually register for trait changes and call setNeedsLayout
on views. With automatic trait tracking, this manual process is eliminated, and the system automatically updates the views, ensuring maximum performance by only creating necessary trait dependencies.
For more details, you can refer to the chapter on Automatic trait tracking in the "What’s new in UIKit" session.

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

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.