SwiftprotocolWidgetKit

protocol WidgetKit.PickerStateProvider

Members 4

  1. associatedtypeassociatedtype Intent
  2. associatedtypeassociatedtype State
  3. funcmethod descriptor for allStates(configuration: A.Intent) -> [A.State]
  4. funcmethod descriptor for state(configuration: A.Intent) async throws -> A.State
protocol PickerStateProvider where Self.Intent: WidgetKit.SetValueAppIntent, Self.State: Swift.Identifiable, Self.State == Self.Intent.ValueType {
    associatedtype Intent
    associatedtype State

    func allStates(configuration: Self.Intent) -> [Self.State]
    func state(configuration: Self.Intent) async throws -> Self.State
}