what new in swift ui
Asked on 2025-01-31
1 search
At WWDC 2024, several new features and improvements were introduced for SwiftUI. Here are some of the highlights:
-
Graphics Capabilities: SwiftUI now allows for more advanced graphics, including a new mix modifier for colors that lets you blend colors together. Custom shaders can now be precompiled to avoid frame drops.
-
Scroll View Enhancements: There are new APIs for scroll views, allowing for more control over scroll positions and the ability to detect when a view's visibility changes due to scrolling. This can be used to create experiences like auto-playing videos when they come into view.
-
Text Management: SwiftUI now offers programmatic access to text selection within text editing controls, allowing for features like showing suggested rhymes for selected words.
-
Swift 6 Language Mode: The new Swift 6 language mode introduces compile-time data race safety. SwiftUI has improved its APIs to make it easier to adopt this new language mode.
-
Interoperability: There are significant improvements in the integration of gestures and animations between SwiftUI and UIKit/AppKit, enhancing interoperability.
-
Xcode Previews: A new dynamic linking architecture in Xcode previews allows for faster iteration by switching between preview and build without needing to rebuild the project.
For more detailed information, you can watch the session What’s new in SwiftUI which covers these updates extensively.

Migrate your TVML app to SwiftUI
SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.

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.

Elevate your tab and sidebar experience in iPadOS
iPadOS 18 introduces a new navigation system that gives people the flexibility to choose between using a tab bar or sidebar. The newly redesigned tab bar provides more space for content and other functionality. Learn how to use SwiftUI and UIKit to enable customization features – like adding, removing and reordering tabs – to enable a more personal touch in your app.