SwiftUI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 110: Line 110:
* [https://www.objc.io/blog/2019/06/25/swiftui-data-loading/ Loading Data Asynchronously]
* [https://www.objc.io/blog/2019/06/25/swiftui-data-loading/ Loading Data Asynchronously]
* [https://stackoverflow.com/questions/57415086 Passing data between Views]
* [https://stackoverflow.com/questions/57415086 Passing data between Views]
* [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]


|}
|}

Revision as of 04:11, 15 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