mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 05:19:42 +01:00
19 lines
572 B
Swift
19 lines
572 B
Swift
|
import WidgetKit
|
||
|
import AppIntents
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|