whats new in ios 18 swiftui?
Generated on 8/4/2024
1 search
In iOS 18, SwiftUI introduces several new features and improvements:
-
Graphics Capabilities:
- New mix modifier on color to blend colors by a given amount.
- Extended custom shader feature with precompiled shaders to avoid frame drops.
-
Scroll View Enhancements:
- Fine-grained control over scroll views with
onScrollGeometryChange
. - Ability to detect view visibility changes due to scrolling.
- More programmatic control over scroll positions and content alignment.
- Fine-grained control over scroll views with
-
TabView Updates:
- New syntax in SwiftUI to declare a tab struct with title, image, and content view.
- Ensures all tabs have the same selection type and matches the tab view itself.
-
Swift 6 Language Mode:
- Enables compile-time data race safety.
- Views in SwiftUI are now evaluated on the main actor by default.
-
Interoperability with UIKit:
- Gesture recognition and animations have been factored out to work seamlessly with SwiftUI.
- Use SwiftUI animation types to animate UIKit views.
-
Custom Containers and Mesh Gradients:
- New APIs for creating custom containers and beautiful mesh gradients.
-
Scrolling Customizations:
- Additional options to control scrolling behavior, such as turning off bouncing along a given axis and programmatically stopping scrolling.
For a detailed overview, you can watch the session What’s new in SwiftUI.
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.
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.
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.
Platforms State of the Union
Discover the newest advancements on Apple platforms.