ContentView.swift


  1. import SwiftUI
  2. struct ContentView: View {
  3. var body: some View {
  4. VStack {
  5. MapView()
  6. .ignoresSafeArea(edges: .top)
  7. .frame(height: 300)
  8. CircleImage()
  9. .offset(y: -130)
  10. .padding(.bottom, -130)
  11. VStack(alignment: .leading) {
  12. Text("Turtle Rock")
  13. .font(.title)
  14. HStack {
  15. Text("Joshua Tree National Park")
  16. Spacer()
  17. Text("California")
  18. }
  19. .font(.subheadline)
  20. .foregroundColor(.secondary)
  21. Divider()
  22. Text("About Turtle Rock")
  23. .font(.title2)
  24. Text("Descriptive text goes here.")
  25. }
  26. .padding()
  27. Spacer()
  28. }
  29. }
  30. }
  31. struct ContentView_Previews: PreviewProvider {
  32. static var previews: some View {
  33. ContentView()
  34. }
  35. }