diff options
Diffstat (limited to 'metal_test/MapView.swift')
-rw-r--r-- | metal_test/MapView.swift | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/metal_test/MapView.swift b/metal_test/MapView.swift new file mode 100644 index 0000000..e0ebb87 --- /dev/null +++ b/metal_test/MapView.swift @@ -0,0 +1,31 @@ +// +// MapView.swift +// metal_test +// +// Created by Ian C on 25/11/2023. +// + +import SwiftUI +import MapKit + +struct MapView: View { + var body: some View { + Map(initialPosition: .region(region)) + } + + private var region: MKCoordinateRegion { + + MKCoordinateRegion( + + center: CLLocationCoordinate2D(latitude: 34.011_286, longitude: -116.166_868), + + span: MKCoordinateSpan(latitudeDelta: 0.2, longitudeDelta: 0.2) + + ) + + } +} + +#Preview { + MapView() +} |