Horizontal & Vertical ScrollView
Scroll arbitrary content in any direction.
Beyond One Screen
Sometimes your content is taller than the screen. A ScrollView lets users glide past the edges to see it all. 📜
ScrollView {
Text("Lots of content here")
}Vertical by Default
A plain ScrollView scrolls up and down. Wrap a tall VStack inside and everything becomes swipeable.
ScrollView {
VStack {
Text("Top")
Text("Bottom")
}
}All lessons in this course
- Horizontal & Vertical ScrollView
- LazyVStack & LazyHStack
- Adaptive Grids with LazyVGrid
- ScrollView Reader & Anchors