StatedValueStore
public class StatedValueStore<T>
A value store that can store different values depending on the state of the control.
When requesting a value for a state that is not specified, the
ControlViewState.normal‘s version of the value is returned. If that
state is not present, the default type for T is finally returned,
instead.
-
Undocumented
Declaration
Swift
public func getValue(_ state: ControlViewState, defaultValue: T) -> T -
Undocumented
Declaration
Swift
public func setValue(_ value: T, forState state: ControlViewState) -
Undocumented
Declaration
Swift
public func removeValueForState(_ state: ControlViewState)