SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 61: | Line 61: | ||
* [https://kean.github.io/post/swiftui-layout-system SwiftUI Layout System] | * [https://kean.github.io/post/swiftui-layout-system SwiftUI Layout System] | ||
* [https://stackoverflow.com/questions/56619043 SwiftUI Divider Styles] | * [https://stackoverflow.com/questions/56619043 SwiftUI Divider Styles] | ||
* [https://www.appcoda.com/swiftui-buttons/ SwiftUI Buttons] | |||
|} | |} |
Revision as of 03:29, 1 January 2020
ContentView
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(alignment: .leading) {
Text("Turtle Rock")
.font(.title)
HStack {
Text("Joshua Tree National Park")
.font(.subheadline)
Spacer()
Text("California")
.font(.subheadline)
}
}
.padding()
}
}
struct ContentView_Preview: PreviewProvider {
static var previews: some View {
ContentView()
}
}