Contents

init(_:_:)

Creates a Switch statement that branches based on union value parameter cases.

Declaration

init(_ keyPath: KeyPath<Intent, IntentParameter<Value>>, @ParameterSummaryCaseBuilder<Intent, Value.ValueType.Cases> _ builder: () -> CaseCondition) where Value : Sendable, Value.ValueType : AppUnionValue

Parameters

  • keyPath:

    Key path to the union value parameter

  • builder:

    A result builder that constructs the case conditions