From 2b599499dc26f0f93537d1bea4733eae68333a1c Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Mon, 17 Nov 2025 00:32:31 +0000 Subject: Save old work that I have no clue what I where doing --- LearnMapKit/ContentView.swift | 44 ++----------------------------------------- 1 file changed, 2 insertions(+), 42 deletions(-) (limited to 'LearnMapKit/ContentView.swift') diff --git a/LearnMapKit/ContentView.swift b/LearnMapKit/ContentView.swift index cbe178f..4042831 100644 --- a/LearnMapKit/ContentView.swift +++ b/LearnMapKit/ContentView.swift @@ -8,31 +8,6 @@ import SwiftUI import MapKit import Collections -/* -struct FlightView: View { - - var evilClass: FlightState - - var body: some View { - //let i = evilClass.flight.count - let pos = CLLocationCoordinate2D(latitude: 55.80159, longitude:-3.13154) - Map() { - ForEach(0..<10, id:\.self) {i in - Annotation("plane\(i)", coordinate: pos) { - ZStack { - RoundedRectangle(cornerRadius: 10) - .fill(.background) - RoundedRectangle(cornerRadius: 10) - .stroke(.secondary,lineWidth: 5) - Image(systemName:"airplane.circle.fill") - .resizable() - .frame(width:20,height: 20) - } - }//.annotationTitles(.hidden) - } - } - } -}*/ struct ContentView: View { @@ -50,11 +25,6 @@ struct ContentView: View { return .region(region) }() - //let position1 = CLLocationCoordinate2D(latitude: 55.80159, longitude:-3.53154) - //let position2 = CLLocationCoordinate2D(latitude: 55.99159, longitude:-3.53154) - //let position3 = CLLocationCoordinate2D(latitude: 55.80159, longitude:-3.43154) - //let position4 = CLLocationCoordinate2D(latitude: 55.80159, longitude:-3.63154) - var body: some View { VStack { @@ -65,18 +35,8 @@ struct ContentView: View { latitude: flight.lat, longitude:flight.long) ) { + VStack { - /* - ZStack { - RoundedRectangle(cornerRadius: 10) - .fill(.background) - RoundedRectangle(cornerRadius: 10) - .stroke(.secondary,lineWidth: 5) - //Image(systemName:"airplane.circle.fill") - // .resizable() - // .frame(width:20,height: 20) - Text("\(flight.ICAOName)").font(.body) - }*/ ZStack { RoundedRectangle(cornerRadius: 10) .fill(.background) @@ -84,7 +44,7 @@ struct ContentView: View { .stroke(.secondary,lineWidth: 5) Image(systemName:"airplane.circle.fill") .resizable() - .frame(width:20,height: 20) + .frame(width:20,height: 20) } Text("\(flight.ICAOName)").font(.body) } -- cgit v1.2.3