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
|
|
|
//
|
2023-04-01 12:10:59 +02:00
|
|
|
|
2023-03-11 18:30:33 +01:00
|
|
|
import WidgetKit
|
|
|
|
import SwiftUI
|
|
|
|
|
2023-05-01 07:50:24 +02:00
|
|
|
struct PhotoWidget: Widget {
|
2023-03-11 18:30:33 +01:00
|
|
|
let kind: String = "VernissageWidget"
|
|
|
|
|
|
|
|
var body: some WidgetConfiguration {
|
2023-05-01 07:50:24 +02:00
|
|
|
StaticConfiguration(kind: kind, provider: PhotoProvider()) { entry in
|
|
|
|
PhotoWidgetEntryView(entry: entry)
|
2023-03-11 18:30:33 +01:00
|
|
|
}
|
|
|
|
.configurationDisplayName("Vernissage")
|
2023-05-01 07:50:24 +02:00
|
|
|
.description("widget.title.photoDescription")
|
2023-03-11 18:30:33 +01:00
|
|
|
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
|
2023-09-16 10:39:21 +02:00
|
|
|
.contentMarginsDisabled()
|
2023-03-11 18:30:33 +01:00
|
|
|
}
|
|
|
|
}
|