ContentView
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(alignment:.leading) {
Text("Turtle Rock")
.font(.title)
.foregroundColor(.green)
HStack {
Text("Joshua Tree National Park")
.font(.subheadline)
Spacer()
Text("California")
.font(.subheadline)
}
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
Group {
ContentView()
}
}
}
image.png
网友评论