SwiftUI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 42: Line 42:


| valign="top" |
| valign="top" |
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/ iOS System Icons]
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/ System Icons]
* [https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/ SF Symbols]
|}
|}

Revision as of 01:46, 29 December 2019

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