Skip to content

Instantly share code, notes, and snippets.

@karigrooms
Created February 17, 2021 20:39
Show Gist options
  • Save karigrooms/58b5b77c7b1b20d10ccde7b7d267913a to your computer and use it in GitHub Desktop.
Save karigrooms/58b5b77c7b1b20d10ccde7b7d267913a to your computer and use it in GitHub Desktop.
SwiftUI lazy stack example for Lessons in SwiftUI blog post
import SwiftUI
@available(iOS 14.0, *)
struct ExampleSwiftUIView: View {
var body: some View {
ScrollView {
LazyVStack {
ForEach(1...50, id: \.self) {
Text("Row \($0)")
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment