SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 113: | Line 113: | ||
* [http://www.appsdeveloperblog.com/http-post-request-example-in-swift POST Request Example] | * [http://www.appsdeveloperblog.com/http-post-request-example-in-swift POST Request Example] | ||
* [https://forums.raywenderlich.com/t/today-extension-tutorial-getting-started/27584 URL Scheme Extension] | * [https://forums.raywenderlich.com/t/today-extension-tutorial-getting-started/27584 URL Scheme Extension] | ||
* [https://stackoverflow.com/questions/56736466/ Alternative to switch] | |||
|} | |} | ||
----- | ----- |
Revision as of 20:32, 23 March 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()
}
}