UndoManager access from Keyboard extension

Hi,


I'm trying to implement undo and redo, in a Custom keyboard extension. However, calling undo() on the UndoManager from UIInputViewController, doesn't seems to work. Is there any other way of getting the UndoManager from the app the keyboard is connected to?

Or do I need create my own logic to store what a user has written?