Created
January 24, 2021 09:17
-
-
Save SergeiMeza/399424039b246d92aef93468b22b01c0 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
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
ZStack { | |
ScrollView { | |
VStack(alignment: .leading) { | |
ForEach(1...10, id: \.self) { index in | |
VStack(alignment: .leading) { | |
Text("Item \(index)") | |
.font(.title2) | |
.fontWeight(.semibold) | |
Divider() | |
} | |
.frame(height:50) | |
} | |
} | |
.padding() | |
.frame(maxWidth: .infinity) | |
} | |
} | |
.background( | |
Color | |
.orange | |
.edgesIgnoringSafeArea(.all) | |
) | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
ContentView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment