mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
93727084ec
- Packing: a ring of what is in the bags, each bag against its weight limit, the items still missing in their bag's colour, a nudge when departure is two days or less away - World map: the world as dots from the Atlas country shapes (WorldGrid.swift, generated by WidgetPreviews/make-world-grid.py), the visited countries glowing, the latest one ringed, continents as bars and the latest countries with their flags; it needs no trip - Travel group: who comes along as avatars, the latest chat messages as bubbles and the open poll with its votes as bars - The to-dos widget is about to-dos only; the packing ring moved out The app sends the bags, the Atlas countries (an hour's cache) and the chat and poll with the snapshot; all optional, as before.
20 lines
512 B
Swift
20 lines
512 B
Swift
import SwiftUI
|
|
import WidgetKit
|
|
|
|
/// The TREK widgets: the trip, today's plan, the bookings ahead, 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()
|
|
TodosWidget()
|
|
PackingWidget()
|
|
AtlasWidget()
|
|
CollabWidget()
|
|
TripDayLiveActivity()
|
|
}
|
|
}
|