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

18 lines
581 B
Swift

import AppIntents
import WidgetKit
struct AccountWidgetConfiguration: WidgetConfigurationIntent {
static let title: LocalizedStringResource = "Account Widget Configuration"
static let description = IntentDescription("Choose the account for this widget")
@Parameter(title: "Account")
var account: AppAccountEntity
}
extension AccountWidgetConfiguration {
static var previewAccount: AccountWidgetConfiguration {
let intent = AccountWidgetConfiguration()
intent.account = .init(account: .init(server: "Test", accountName: "Test account"))
return intent
}
}