summaryrefslogtreecommitdiff
path: root/LearnMapKit/ContentView.swift
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2026-09-24 10:18:00 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2026-09-24 10:18:00 +0100
commit056ee0c3355db995d7ea571e0635ebe8b09bf8ee (patch)
tree484a084eea788516c2395106c11f2f5f80e10bc4 /LearnMapKit/ContentView.swift
parented53ed83b71f2f3005d8b52ad005aeff1f59e39c (diff)
downloadADSBDecoder-056ee0c3355db995d7ea571e0635ebe8b09bf8ee.tar.gz
ADSBDecoder-056ee0c3355db995d7ea571e0635ebe8b09bf8ee.zip
expired flights get removed, and when stalled get grayed out
Diffstat (limited to 'LearnMapKit/ContentView.swift')
-rw-r--r--LearnMapKit/ContentView.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/LearnMapKit/ContentView.swift b/LearnMapKit/ContentView.swift
index 4d597f6..8f8f3e9 100644
--- a/LearnMapKit/ContentView.swift
+++ b/LearnMapKit/ContentView.swift
@@ -41,7 +41,8 @@ struct ContentView: View {
RoundedRectangle(cornerRadius: 10)
.fill(.background)
RoundedRectangle(cornerRadius: 10)
- .stroke(.secondary,lineWidth: 5)
+ .stroke(flightState.isStaled(flight) ? .gray : .secondary, lineWidth: 5)
+ .animation(.easeInOut(duration: 0.4), value: flightState.isStaled(flight))
Image(systemName:"airplane.circle.fill")
.resizable()
.frame(width:20,height: 20)