Skip to content

Instantly share code, notes, and snippets.

@jstart
Created June 17, 2019 19:56
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 jstart/843b126f0732e1a010d8ca0452eedc04 to your computer and use it in GitHub Desktop.
Save jstart/843b126f0732e1a010d8ca0452eedc04 to your computer and use it in GitHub Desktop.
SwiftUI Nesting ScrollView's
struct NestedScrollViews : View {
var body: some View {
NavigationView {
ScrollView {
VStack {
ForEach(0..<100) { _ in
ScrollView {
HStack {
Text("test test test test test test test test test test test test test")
}
}.frame(width: 300, height: 100)
}
}
}.frame(width: 200, height: 500)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment