IceCubes/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift

19 lines
570 B
Swift
Raw Normal View History

2024-05-06 08:37:58 +02:00
import AppIntents
2024-05-06 08:38:37 +02:00
import WidgetKit
2024-05-06 08:37:58 +02:00
struct MentionsWidgetConfiguration: WidgetConfigurationIntent {
static let title: LocalizedStringResource = "Configuration"
static let description = IntentDescription("Choose the account for this widget")
2024-05-06 08:38:37 +02:00
2024-05-06 08:37:58 +02:00
@Parameter(title: "Account")
var account: AppAccountEntity
}
extension MentionsWidgetConfiguration {
static var previewAccount: MentionsWidgetConfiguration {
let intent = MentionsWidgetConfiguration()
intent.account = .init(account: .init(server: "Test", accountName: "Test account"))
return intent
}
}