Enumerations
The following enumerations are available globally.
-
A predicate that determines if a state change should notify subscribers or not, by comparing previous and new states and returning a Bool true in case it should emit it, or false in case it should not emit it. It comes with some standard options like
See more.always
,.never
,.when(old, new) -> Bool
and, forEquatable
structures,.whenDifferent
.Declaration
Swift
public enum ShouldEmitValue<StateType>