SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
* [https://developer.apple.com/tutorials/swiftui/drawing-paths-and-shapes Drawing Paths and Shapes] | * [https://developer.apple.com/tutorials/swiftui/drawing-paths-and-shapes Drawing Paths and Shapes] | ||
* [https://developer.apple.com/tutorials/swiftui/working-with-ui-controls Working with UI Controls] | * [https://developer.apple.com/tutorials/swiftui/working-with-ui-controls Working with UI Controls] | ||
* [https://developer.apple.com/tutorials/swiftui/creating-a-watchos-app Creating a watchOS App] | |||
* [https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit Interfacing with UIKit] | * [https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit Interfacing with UIKit] | ||
* [https://developer.apple.com/tutorials/swiftui/handling-user-input Handling User Input] | * [https://developer.apple.com/tutorials/swiftui/handling-user-input Handling User Input] | ||
* [https://developer.apple.com/tutorials/swiftui/ SwiftUI Essentials] | * [https://developer.apple.com/tutorials/swiftui/ SwiftUI Essentials] |
Revision as of 04:11, 17 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()
}
}