-
-
Save anupamchugh/8b708810559d95c845d1ca595f4590a1 to your computer and use it in GitHub Desktop.
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
struct ContentView: View { | |
var body: some View { | |
ScrollView(.horizontal) { | |
LazyHStack(spacing: 10) { | |
ForEach(0..<1000) { index in | |
Text("\(index)") | |
.frame(width: 100, height: 200) | |
.border(Color.gray.opacity(0.5), width: 0.5) | |
.background(Color.blue) | |
.cornerRadius(6) | |
} | |
} | |
.padding(.leading, 10) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment