Train status is now coloured coded for your convenience

- Introduced TrainLateness enum to represent on-time, early, late (with minutes), and unknown states, including description text, color, and formatting logic.
- Replaced TrainStatusRow.status String with TrainLateness and update ContentView to render a colored status pill and to return TrainLateness from isOnTime.
This commit is contained in:
Tony Bark 2026-08-23 21:23:45 -04:00
parent 3533e5d4b8
commit 915d0ec2dc
3 changed files with 60 additions and 10 deletions

View file

@ -97,7 +97,7 @@ struct TrainStatusRow: Identifiable {
var trainID: String
var trainNum: String
var routeName: String
var status: String
var status: TrainLateness
var platform: String
var arrival: String
var departure: String