TypedReference

struct TypedReference<T, N> where N : NodeWithOutput
extension TypedReference : Sendable, SendableMetatype

A typed reference to a NodeWithOutput (Starter, StateReader or Assignment).

  • Creates an Assignment from an Expression and assigns it to node property.

    Each call creates a distinct Assignment node with a new node ID that shares this variable’s output, so the same variable can be assigned in multiple branches of a select flow.

    Declaration

    Swift

    mutating func assign(_ expression: any Expression) -> TypedReference<T, N>
  • Creates an Assignment from an AutomationValue and assigns it to node property.

    Declaration

    Swift

    mutating func assign(_ value: any AutomationValue) -> TypedReference<T, N>