ResultShortcut
A shortcut that wraps another shortcut, passing its result to a closure for reference.
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get }
-
Declaration
Swift
public init(base: Base, variableName name: String? = nil, variableUUID uuid: UUID, @ShortcutBuilder builder: (Variable) -> Content)
Parameters
base
The base shortcut whose result to pass into the
builder
closure.name
An optional name to use for the new variable.
uuid
An optional UUID to use for the new variable. Useful for building deterministic output.
builder
A closure that is passed the result of the modified shortcut.