mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
27f12c2245
A new Flight widget on iOS (small to large and the lock screen) and Android shows the trip's next flight or the one in the air: both airports, the arc with the aircraft, a countdown the system keeps running, and the delay. It follows the feed's phase, so a late departure is not flown along the arc. Around a flight the travel day's Live Activity becomes a boarding pass with a running bar and countdown, in the Dynamic Island too.
21 lines
552 B
Swift
21 lines
552 B
Swift
import SwiftUI
|
|
import WidgetKit
|
|
|
|
/// The TREK widgets: the trip, today's plan, the bookings ahead, the next flight, the to-dos,
|
|
/// the packing list, the Atlas and the travel group on the home and lock
|
|
/// screen, and the travel day as a Live Activity.
|
|
@main
|
|
struct TREKWidgetsBundle: WidgetBundle {
|
|
var body: some Widget {
|
|
NextTripWidget()
|
|
TodayWidget()
|
|
BookingsWidget()
|
|
FlightWidget()
|
|
TodosWidget()
|
|
PackingWidget()
|
|
AtlasWidget()
|
|
CollabWidget()
|
|
TripDayLiveActivity()
|
|
}
|
|
}
|