What is the New SwiftUI Layout Performance ?
Generated on 8/5/2024
1 search
The new SwiftUI layout performance improvements were highlighted in the session titled What’s new in SwiftUI. Here are some key points:
-
Scrolling Enhancements: SwiftUI now offers more programmatic control over scroll views, including more scroll positions to programmatically scroll to, such as the top edge. You can also control content alignment, turn off bouncing along a given axis, and programmatically stop scrolling.
-
On Scroll Geometry Change: This new API allows you to react to changes in content offsets, content size, and more, enabling you to create dynamic experiences based on the scroll position.
-
Visibility Detection: SwiftUI can now detect when a view's visibility changes due to scrolling, which is useful for creating experiences centered around content moving on or off the screen.
-
Swift 6 Language Mode: The new Swift 6 language mode enables compile-time data race safety, and SwiftUI has improved its APIs to make it easier to adopt this new language mode in your apps.
For more detailed information, you can refer to the What’s new in SwiftUI session.
Get started with HealthKit in visionOS
Discover how to use HealthKit to create experiences that take full advantage of the spatial canvas. Learn the capabilities of HealthKit on the platform, find out how to bring an existing iPadOS app to visionOS, and explore the special considerations governing HealthKit during a Guest User session. You’ll also learn ways to use SwiftUI, Swift Charts, and Swift concurrency to craft innovative experiences with HealthKit.
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.
Get started with Dynamic Type
Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.
Platforms State of the Union
Discover the newest advancements on Apple platforms.
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.