SwiftUI: How to implement horizontal automatic scrolling scrollView

I found this functionality of an auto-scrolling horizontal scrollview and would now like to include it in my app. Does anyone know how something like this might work or where I can start? I appreciate help. Best regards

Look: https://www.youtube.com/shorts/VJG3GYU7f6c

Hi, I would start by wrapping your ScrollView in a ScrollViewReader. With this property you can programmatically scroll to positions and even animate them. By giving the last item in your list an id like so .id(topID) you can scroll to this item using .scrollTo(_anchor)

Hope this helps, take care David

SwiftUI: How to implement horizontal automatic scrolling scrollView
 
 
Q