struct Parameter
extension Parameter : Equatable, Hashable, Sendable
A Parameter contains the identifier and value of a parameter for a starter, command, or event.
-
The corresponding field for this parameter.
Declaration
Swift
let field: AnyField
-
The value associated with this parameter.
Declaration
Swift
let value: AnyAutomationValue
-
Undocumented
Declaration
Swift
@_spi(Unknown) init(field: any Field, value: (any AutomationValue)?)
-
Undocumented
Declaration
Swift
@_spi(Unknown) init(field: any Field, value: AnyAutomationValue)
-
Returns the associated value of the parameter.
This property can be used in place of having to switch over every case in
value
to extract the associated value.Declaration
Swift
var associatedValue: Any? { get }