If I drop support for iOS 16, what new SwiftUI features can I use in my app?
Asked on 01/20/2025
2 searches
If you drop support for iOS 16 and target newer versions, you can take advantage of several new SwiftUI features introduced at WWDC 2024. Here are some of the highlights:
-
Graphics Capabilities: SwiftUI now includes a new mix modifier on colors, allowing you to blend colors beautifully. Additionally, custom shaders can be precompiled to avoid frame drops caused by lazy shader compilation.
-
Scrolling Enhancements: You have more control over scroll views, including reacting to changes in content offsets and sizes with
onScrollGeometryChange
. You can also detect when a view's visibility changes due to scrolling, enabling experiences like auto-playing videos. -
Custom Containers and Mesh Gradients: New APIs for custom containers and mesh gradients allow for more creative and flexible UI designs.
-
Swift 6 Language Mode: This mode introduces compile-time data race safety, and SwiftUI has improved its APIs to make it easier to adopt this new language mode.
-
Improved Interoperability: Gesture recognition and animations have been improved, allowing for better integration between SwiftUI and UIKit/AppKit.
For more detailed information, you can refer to the session What’s new in SwiftUI (16:18) which covers scrolling enhancements and other new features.

What’s new in StoreKit and In-App Purchase
Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We’ll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We’ll also review an important StoreKit deprecation.

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.

Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.