summaryrefslogtreecommitdiff
path: root/LearnMapKit/ContentView.swift
diff options
context:
space:
mode:
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)