Undo?
#461
Replies: 1 comment
-
For now I'm passing the undoManager from the view on each change to the store, where an environment class gets passed the current state, the undoManager and the arguments for the operation and then does the operation and registers an undo on the passed in undoManager. The undo sends its action through a PassthroughSubject, which I register on startup with the store. Advantages:
Disatvantages:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently in the process of trying out TCA and I wondered how to interact with the
UndoManager
. The only post I found is this one from the Swift Forums, which proposes two ways. One being bindingUndoManager.registerUndo
to aViewStore
and the second proposing a pullback-like.forEach
where anUndoManager
is somehow passed in. How do you currently use theUndoManager
with TCA and what are thinking, where can this lead to?Beta Was this translation helpful? Give feedback.
All reactions