SwiftUI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 90: Line 90:
* [https://makeapppie.com/2019/10/16/checkboxes-in-swiftui/ CheckBox]
* [https://makeapppie.com/2019/10/16/checkboxes-in-swiftui/ CheckBox]
* [https://github.com/andreamazz/AMPopTip Tool Tips]
* [https://github.com/andreamazz/AMPopTip Tool Tips]
| valign="top" |
* [https://www.hackingwithswift.com/quick-start/swiftui/how-to-place-content-outside-the-safe-area Place View outside of the Safe Area]


|}
|}

Revision as of 22:12, 8 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()
    }
}

References