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] | ||
|} | |||
----- | |||
{| | |||
| valign="top" | | |||
* [https://stackoverflow.com/questions/748175 Asynchronous vs Synchronous] | |||
|} | |} |
Revision as of 01:58, 22 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()
}
}