|
|
|
|
@ -70,6 +70,7 @@ struct LaunchWidgetEntryView : View { |
|
|
|
|
var body: some View { |
|
|
|
|
switch family { |
|
|
|
|
case .systemSmall: CountdownWidgetView(id: entry.id, name: entry.name, duration: entry.duration) |
|
|
|
|
|
|
|
|
|
// case .systemMedium: GameStatusWithLastTurnResult(gameStatus) |
|
|
|
|
// case .systemLarge: GameStatusWithStatistics(gameStatus) |
|
|
|
|
// case .systemExtraLarge: GameStatusWithStatisticsExtraLarge(gameStatus) |
|
|
|
|
@ -102,5 +103,8 @@ struct LaunchWidget_Previews: PreviewProvider { |
|
|
|
|
static var previews: some View { |
|
|
|
|
LaunchWidgetEntryView(entry: SimpleEntry(id: "", name: "Tea", duration: 3 * 60.0, date: Date(), configuration: SelectCountdownIntent())) |
|
|
|
|
.previewContext(WidgetPreviewContext(family: .systemSmall)) |
|
|
|
|
LaunchWidgetEntryView(entry: SimpleEntry(id: "", name: "Tea", duration: 3 * 60.0, date: Date(), configuration: SelectCountdownIntent())) |
|
|
|
|
.previewContext(WidgetPreviewContext(family: .accessoryRectangular)) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|