What new additions to the SwiftUI scroll view will there be in iOS18?
Generated on 8/2/2024
1 search
In iOS 18, SwiftUI introduces several new additions to the scroll view, enhancing both functionality and control. Here are the key updates:
- Programmatic Control: You now have more programmatic control over your scroll view, including the ability to programmatically scroll to various positions like the top edge.
- Scroll Positions: There are more scroll positions available for programmatic scrolling.
- Scroll Geometry Changes: The
onScrollGeometryChange
modifier allows you to react to changes in content offsets, content size, and more, enabling deeper integration with the state of a scroll view. - Visibility Detection: You can detect when a view's visibility changes due to scrolling, which is useful for creating experiences centered around content moving on or off screen.
- Content Alignment: You have more control over content alignment within the scroll view.
- Bouncing Control: You can turn off bouncing along a given axis.
- Stopping Scrolling: There is the ability to programmatically stop scrolling.
For more details, you can refer to the session What’s new in SwiftUI (16:47).
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.
Create custom visual effects with SwiftUI
Discover how to create stunning visual effects in SwiftUI. Learn to build unique scroll effects, rich color treatments, and custom transitions. We’ll also explore advanced graphic effects using Metal shaders and custom text rendering.
Migrate your TVML app to SwiftUI
SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.
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.