SwiftUI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 118: Line 118:
| valign="top" |
| valign="top" |
* [https://stackoverflow.com/questions/748175 Asynchronous vs Synchronous]
* [https://stackoverflow.com/questions/748175 Asynchronous vs Synchronous]
* [https://github.com/Dalodd/Alamofire-Synchronous Alamofire Synchronous]


|}
|}

Revision as of 08:07, 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()
    }
}

References