summaryrefslogtreecommitdiff
path: root/LearnMapKit/ContentView.swift
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2025-11-17 00:32:31 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2025-11-17 00:32:31 +0000
commit2b599499dc26f0f93537d1bea4733eae68333a1c (patch)
treedc3b177aa2c5cfcf88cf4d5012bb0555c9f7fb5e /LearnMapKit/ContentView.swift
parent9070c9e6b7c7ce5671f4fad85e4aefa8c27aad28 (diff)
downloadADSBDecoder-2b599499dc26f0f93537d1bea4733eae68333a1c.tar.gz
ADSBDecoder-2b599499dc26f0f93537d1bea4733eae68333a1c.zip
Save old work that I have no clue what I where doing
Diffstat (limited to 'LearnMapKit/ContentView.swift')
-rw-r--r--LearnMapKit/ContentView.swift44
1 files changed, 2 insertions, 42 deletions
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)
}