what new in swift ui

Generated on 1/31/2025

1 search

At WWDC 2024, several new features and improvements were introduced for SwiftUI. Here are some of the highlights:

  1. 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.

  2. 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.

  3. Text Management: SwiftUI now offers programmatic access to text selection within text editing controls, allowing for features like showing suggested rhymes for selected words.

  4. 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.

  5. Interoperability: There are significant improvements in the integration of gestures and animations between SwiftUI and UIKit/AppKit, enhancing interoperability.

  6. 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

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

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

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.

What’s new in SwiftUI

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.

SwiftUI essentials

SwiftUI essentials

Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.

What’s new in watchOS 11

What’s new in watchOS 11

Explore new opportunities on Apple Watch, including bringing Double Tap support to your watchOS app, making your Smart Stack widgets even more relevant and interactive, and displaying your iOS Live Activities in the Smart Stack.

Platforms State of the Union

Platforms State of the Union

Discover the newest advancements on Apple platforms.