SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 102: | Line 102: | ||
* [https://stackoverflow.com/questions/56610957 Blur a background] | * [https://stackoverflow.com/questions/56610957 Blur a background] | ||
* [https://stackoverflow.com/questions/58121756 Return Key] | * [https://stackoverflow.com/questions/58121756 Return Key] | ||
| valign="top" | | |||
* [https://stackoverflow.com/questions/57415086 Passing data between Views] | |||
|} | |} |
Revision as of 20:04, 12 February 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()
}
}