Created
February 17, 2021 20:39
-
-
Save karigrooms/58b5b77c7b1b20d10ccde7b7d267913a to your computer and use it in GitHub Desktop.
SwiftUI lazy stack example for Lessons in SwiftUI blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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