What SwiftUI updates are coming in iOS 18?
Generated on 8/3/2024
1 search
In iOS 18, SwiftUI is receiving several exciting updates. Here are some of the key enhancements:
-
Graphics Capabilities:
- New mix modifier on color to blend colors by a given amount.
- Extended custom shader feature with precompilation to avoid frame drops.
-
Scroll Views:
- New APIs for fine-grained control over scroll views.
onScrollGeometryChange
to react to changes in content, offsets, and content size.- Detect when a view's visibility changes due to scrolling, enabling experiences like auto-playing videos.
-
Accessibility:
- Additional accessibility information can be added to built-in labels without overriding them.
- New accessibility features such as conditional modifier support and app intent-based accessibility actions.
-
Xcode Previews:
- New dynamic linking architecture to avoid rebuilding projects when switching between preview and build/run.
previewable
macro to use state directly in previews, reducing boilerplate code.
-
Text Management:
- Programmatic access to and control of text selection within text editing controls.
-
TabView:
- New syntax to catch common errors at build time.
- Declare a tab struct with a title, image, and content view, with optional selection value for programmatic selection.
For more detailed information, you can check out the session "What’s new in SwiftUI" (00:00:07).

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

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.

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.

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.

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.