0PricingLogin
SwiftUI Academy · Lesson

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

  1. Horizontal & Vertical ScrollView
  2. LazyVStack & LazyHStack
  3. Adaptive Grids with LazyVGrid
  4. ScrollView Reader & Anchors
← Back to SwiftUI Academy