SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
==References== | ==References== | ||
{| | |||
| valign="top" | | |||
* [https://developer.apple.com/tutorials/swiftui/animating-views-and-transitions Add Animations to Individual Views] | * [https://developer.apple.com/tutorials/swiftui/animating-views-and-transitions Add Animations to Individual Views] | ||
* [https://developer.apple.com/tutorials/swiftui/composing-complex-interfaces Composing Complex Interfaces] | * [https://developer.apple.com/tutorials/swiftui/composing-complex-interfaces Composing Complex Interfaces] | ||
Line 38: | Line 40: | ||
* [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] | ||
| valign="top" | | |||
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/ iOS System Icons] | |||
|} |
Revision as of 01:41, 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()
}
}