|
|
|
|
@ -50,6 +50,7 @@ struct LaunchWidgetLiveActivity: Widget { |
|
|
|
|
} |
|
|
|
|
.padding() |
|
|
|
|
.monospaced() |
|
|
|
|
.background(Color(white: 0.1)) |
|
|
|
|
.foregroundColor(.white) |
|
|
|
|
.activitySystemActionForegroundColor(.white) |
|
|
|
|
} dynamicIsland: { context in |
|
|
|
|
@ -74,6 +75,7 @@ struct LaunchWidgetLiveActivity: Widget { |
|
|
|
|
} compactLeading: { |
|
|
|
|
Text(context.attributes.name.uppercased()) |
|
|
|
|
} compactTrailing: { |
|
|
|
|
Group { |
|
|
|
|
if context.attributes.isTimer { |
|
|
|
|
let range = Date()...context.attributes.date |
|
|
|
|
Text(timerInterval: range, |
|
|
|
|
@ -81,6 +83,7 @@ struct LaunchWidgetLiveActivity: Widget { |
|
|
|
|
} else { |
|
|
|
|
Text(context.attributes.date, style: .timer) |
|
|
|
|
} |
|
|
|
|
}.multilineTextAlignment(.trailing) |
|
|
|
|
} minimal: { |
|
|
|
|
if context.attributes.isTimer { |
|
|
|
|
let range = Date()...context.attributes.date |
|
|
|
|
|