From 056ee0c3355db995d7ea571e0635ebe8b09bf8ee Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Thu, 24 Sep 2026 10:18:00 +0100 Subject: expired flights get removed, and when stalled get grayed out --- LearnMapKit/ContentView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LearnMapKit/ContentView.swift') 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) -- cgit v1.2.3