Skip to content

Instantly share code, notes, and snippets.

@alexvenom
Created September 26, 2019 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexvenom/440adac96cc94c6608fc5aaf935403d3 to your computer and use it in GitHub Desktop.
Save alexvenom/440adac96cc94c6608fc5aaf935403d3 to your computer and use it in GitHub Desktop.
ScrollView(.horizontal, showsIndicators: false) {
}.frame(height: 70)
Now, let's add a few of our recently created PreviewViewTop instances inside it:
ScrollView(.horizontal, showsIndicators: false) {
HStack {
PreviewViewTop()
PreviewViewTop()
PreviewViewTop()
PreviewViewTop()
PreviewViewTop()
PreviewViewTop()
}
}.frame(height: 70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment