OutputVariable

@propertyWrapper
public struct OutputVariable

A property wrapper type for a Variable that allows for saving output from a Shortcut.

  • The underlying value referenced by the output variable.

    Declaration

    Swift

    public let wrappedValue: Variable
  • The output variable value.

    Declaration

    Swift

    public var projectedValue: OutputVariable { get }
  • Creates an output variable that can be written to.

    Declaration

    Swift

    public init(wrappedValue: Variable = Variable())

    Parameters

    wrappedValue

    The underlying variable to write to.