undoManager
Swift declaration@MainActor var undoManager: UndoManager? { get }The undo manager you use to register undo actions for your app intents. In your app intent’s ``AppIntent/perform()`` method, use this property to get an undo manager suitable for registering undoable actions. The system makes every effort to find a suitable undo manager given the current state of your app or app extension. However, if a suitable undo manager isn’t available, the value of this property is `nil`. Use the undo manager in this property only to register your undoable actions. App intents don't initiate calls to the <doc://com.apple.documentation/documentation/foundation/undomanager/undo()> or <doc://com.apple.documentation/documentation/foundation/undomanager/redo()> methods of the undo manager. Your app initiates undo and redo operations in response to interactions with its menus or interface.