Impressia/VernissageWidget/QRCodeWidget/QRCodeWidget.swift

22 lines
624 B
Swift
Raw Normal View History

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-03-11 18:30:33 +01:00
import WidgetKit
import SwiftUI
2023-05-01 07:50:24 +02:00
struct QRCodeWidget: Widget {
2023-05-03 08:04:56 +02:00
let kind: String = "VernissageQRCodeWidget"
2023-03-11 18:30:33 +01:00
var body: some WidgetConfiguration {
2023-05-01 07:50:24 +02:00
StaticConfiguration(kind: kind, provider: QRCodeProvider()) { entry in
QRCodeWidgetEntryView(entry: entry)
2023-03-11 18:30:33 +01:00
}
.configurationDisplayName("Vernissage")
2023-05-01 07:50:24 +02:00
.description("widget.title.qrCodeDescription")
2023-03-11 18:30:33 +01:00
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
}
}