There is a new scrollview listener or something right where you can get scroll positions
Asked on 09/13/2024
1 search
Yes, there is a new feature in SwiftUI related to scroll views that allows you to get scroll positions. In the session titled "What’s new in SwiftUI," it was mentioned that you can now have a deeper level of integration with the state of a scroll view using the onScrollGeometryChange
modifier. This lets you react to changes in content offsets, content size, and more. Additionally, you can detect when a view's visibility changes due to scrolling, which can be used to create experiences centered around content moving on or off the screen, such as auto-playing videos.
For more details, you can refer to the session What’s new in SwiftUI (16:47).

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.

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.

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.