2023-03-11 18:30:33 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
2023-03-28 10:35:38 +02:00
|
|
|
// Licensed under the Apache License 2.0.
|
2023-03-11 18:30:33 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
import WidgetKit
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct VernissageWidgetEntryView : View {
|
|
|
|
@Environment(\.widgetFamily) var family: WidgetFamily
|
|
|
|
|
|
|
|
var entry: Provider.Entry
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
switch family {
|
|
|
|
case .systemSmall: SmallWidgetView(entry: entry)
|
|
|
|
case .systemMedium: MediumWidgetView(entry: entry)
|
|
|
|
case .systemLarge: LargeWidgetView(entry: entry)
|
|
|
|
default: Text("Not supported")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|