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 .always, .never, .when(old, new) -> Bool and, for Equatable structures, .whenDifferent.

    See more

    Declaration

    Swift

    public enum ShouldEmitValue<StateType>