The name identifying the undo action.
SDKs
- iOS 3.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
var undoActionName: String { get }
Discussion
The undo action name. Returns an empty string (@""
) if no action name has been assigned or if there is nothing to undo.
For example, if the menu title is “Undo Delete,” the string returned is “Delete.”