mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 13:42:51 -04:00
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:
parent
3533e5d4b8
commit
915d0ec2dc
3 changed files with 60 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue