BindingTarget
public struct BindingTarget<Value>: BindingTargetProvider
A binding target that can be used with the <~ operator.
-
Creates a binding target.
Declaration
Swift
public init(lifetime: Lifetime, action: @escaping (Value) -> Void)Parameters
lifetimeThe expected lifetime of any bindings towards
self.actionThe action to consume values.
-
Creates a binding target which consumes values on the specified scheduler.
Declaration
Parameters
schedulerThe scheduler on which the
setterconsumes the values.lifetimeThe expected lifetime of any bindings towards
self.actionThe action to consume values.
View on GitHub
Install in Dash
BindingTarget Struct Reference