IceCubesApp/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift
Thomas Ricouard a37316c56f Lint
2024-05-06 08:38:37 +02:00

18 lines
570 B
Swift

import AppIntents
import WidgetKit
struct MentionsWidgetConfiguration: WidgetConfigurationIntent {
static let title: LocalizedStringResource = "Configuration"
static let description = IntentDescription("Choose the account for this widget")
@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
}
}