mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-05-05 15:34:03 +02:00
Update
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
See LICENSE folder for this sample’s licensing information.
|
||||
|
||||
Abstract:
|
||||
A view showing the details for a landmark.
|
||||
*/
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
MapView()
|
||||
.edgesIgnoringSafeArea(.top)
|
||||
.frame(height: 300)
|
||||
|
||||
CircleImage()
|
||||
.offset(x: 0, y: -130)
|
||||
.padding(.bottom, -130)
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
Text("Turtle Rock")
|
||||
.font(.title)
|
||||
HStack(alignment: .top) {
|
||||
Text("Joshua Tree National Park")
|
||||
.font(.subheadline)
|
||||
Spacer()
|
||||
Text("California")
|
||||
.font(.subheadline)
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
struct ContentView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user