IceCubesApp/IceCubesAppWidgetsExtension/ListsWidget/ListsWidgetConfiguration.swift
Thomas Ricouard 1008008b9b Revert "More TabView cleanup"
This reverts commit e051437fcb.
2024-07-09 15:11:12 +02:00

21 lines
647 B
Swift

import AppIntents
import WidgetKit
struct ListsWidgetConfiguration: WidgetConfigurationIntent {
static let title: LocalizedStringResource = "List Widget Configuration"
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
}
}