SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 94: | Line 94: | ||
* [https://www.hackingwithswift.com/quick-start/swiftui/how-to-place-content-outside-the-safe-area Place View outside of the Safe Area] | * [https://www.hackingwithswift.com/quick-start/swiftui/how-to-place-content-outside-the-safe-area Place View outside of the Safe Area] | ||
* [https://stackoverflow.com/questions/56760335 SwiftUI Round Specific Corners] | * [https://stackoverflow.com/questions/56760335 SwiftUI Round Specific Corners] | ||
* [https://stackoverflow.com/questions/26028918 iPhone/iPad Device Model] | |||
|} | |} |
Revision as of 02:45, 9 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()
}
}