SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 87: | Line 87: | ||
* [https://stackoverflow.com/questions/58580027 Radio Group] | * [https://stackoverflow.com/questions/58580027 Radio Group] | ||
* [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] | |||
|} | |} |
Revision as of 01:59, 22 January 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()
}
}