init(_:_:)
Creates a Switch statement that branches based on union value parameter cases.
Declaration
init(_ keyPath: KeyPath<Intent, IntentParameter<Value>>, @ParameterSummaryCaseBuilder<Intent, Value> _ builder: () -> CaseCondition)Parameters
- keyPath:
Key path to the union value parameter
- builder:
A result builder that constructs the case conditions