IceCubesApp/IceCubesAppWidgetsExtension/ListsWidget/ListsWidgetConfiguration.swift

22 lines
647 B
Swift
Raw Normal View History

2024-05-15 07:27:35 +00:00
import AppIntents
import WidgetKit
struct ListsWidgetConfiguration: WidgetConfigurationIntent {
2024-06-11 06:24:04 +00:00
static let title: LocalizedStringResource = "List Widget Configuration"
2024-05-15 07:27:35 +00:00
static let description = IntentDescription("Choose the account and list for this widget")
@Parameter(title: "Account")
var account: AppAccountEntity
@Parameter(title: "List")
var timeline: ListEntity
}
extension ListsWidgetConfiguration {
static var previewAccount: LatestPostsWidgetConfiguration {
let intent = LatestPostsWidgetConfiguration()
intent.account = .init(account: .init(server: "Test", accountName: "Test account"))
return intent
}
}