1
0

ContentView.swift 957 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // ContentView.swift
  3. // Landmarks
  4. //
  5. // Created by Admin on 06.10.2020.
  6. //
  7. import SwiftUI
  8. struct ContentView: View {
  9. var body: some View {
  10. VStack{
  11. MapView()
  12. .edgesIgnoringSafeArea(.top)
  13. .frame(height: 300)
  14. CircleImage()
  15. .offset(y:-130)
  16. .padding(.bottom, -130)
  17. VStack(alignment: .leading) {
  18. Text("Turtle Rock")
  19. .font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
  20. HStack {
  21. Text("Joshua Tree National Park")
  22. .font(.subheadline)
  23. Spacer()
  24. Text("California")
  25. .font(.subheadline)
  26. }
  27. }
  28. .padding()
  29. Spacer()
  30. }
  31. }
  32. }
  33. struct ContentView_Previews: PreviewProvider {
  34. static var previews: some View {
  35. ContentView()
  36. }
  37. }