Skip to content

STRUCT

StateMutationSink

StateMutationSink provides a Sink that helps mutate State using it’s KeyPath.

Methods

send(_:)

Sends message to StateMutationSink to update State’s value using the provided closure.

  • Parameters:
  • update: The State mutation to perform.

send(_:value:)

Sends message to StateMutationSink to update State’s value at KeyPath with Value.

  • Parameters:
  • keyPath: Key path of State whose value needs to be mutated.
  • value: Value to update State with.