ScrollViewReader to auto scroll in SwiftUI | Continued Learning #5

Опубликовано: 01 Октябрь 2024
на канале: Swiftful Thinking
21,121
654

The ScrollViewReader is a super-handy accessory to a ScrollView that allows us to programmatically scroll to a certain location within the ScrollView's content. By adding a "reader", we can quickly scroll to the top, bottom, or any specific item with just a few lines of code!

This video assumes you already know how the ScrollView works! If you want to learn more about how to use a ScrollView in general, I covered it in detail in the SwiftUI Bootcamp course, which you can find here:    • Implementing a ScrollView in SwiftUI ...  

Next video:    • GeometryReader in SwiftUI to get a vi...  
Last video:    • How to use DragGesture to move, drag,...  

🤙 WELCOME BACK 🤙

WEBSITE: https://www.swiftful-thinking.com

DISCORD:   / discord  

GITHUB: https://github.com/SwiftfulThinking/

SAY THANKS: https://www.buymeacoffee.com/nicksarno