What’s new in SwiftUI for iOS 18?
Asked on 07/31/2024
1 search
In iOS 18, SwiftUI introduces several new features and improvements. Here are some of the highlights:
-
Graphics Capabilities:
- New mix modifier on color to blend colors.
- Extended custom shader feature with precompilation to avoid frame drops.
-
Scroll View Enhancements:
- Fine-grained control over scroll views with
onScrollGeometryChange
. - Detecting view visibility changes due to scrolling.
- More programmatic control over scroll positions and content alignment.
- Fine-grained control over scroll views with
-
Accessibility:
- Improved APIs for adding accessibility information without overriding default labels.
- New accessibility features like conditional modifier support and app intent-based actions.
-
Xcode Previews:
- New dynamic linking architecture for faster iteration.
- Easier setup with the
previewable
macro to use state directly in previews.
-
Text Management:
- Programmatic access to and control of text selection within text editing controls.
-
Swift 6 Language Mode:
- Compile-time data race safety.
- Views in SwiftUI are now implicitly isolated to the main actor by default.
-
Interoperability:
- Gesture recognition and animations can now be shared between UIKit and SwiftUI.
For a detailed overview, you can watch the session What’s new in SwiftUI.

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

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