mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-25 08:30:41 +00:00
1008008b9b
This reverts commit e051437fcb
.
18 lines
586 B
Swift
18 lines
586 B
Swift
import AppIntents
|
|
import WidgetKit
|
|
|
|
struct MentionsWidgetConfiguration: WidgetConfigurationIntent {
|
|
static let title: LocalizedStringResource = "Mentions Widget 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
|
|
}
|
|
}
|