One Logo Pool Ball
Foundation · IOS API REFERENCE

UndoManager.DidRedoChangeMessage

struct · iOS 26.0+ · SDK 27.1

struct DidRedoChangeMessage

A message that an undo manager sends after redoing a change. The undo manager posts this message after you call ``UndoManager/redo()``. Because this is a "did"-style message, the undo manager sends the message after it performs the redo. Observe this message type with the identifier ``NotificationCenter/MessageIdentifier/didRedoChange``, or specify its type directly to the `addObserver(of:for:using:)` method. The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``UndoManager``. This message interoperates with the notification ``NSNotification/Name/NSUndoManagerDidRedoChange``. The system notifies observers of the message when the ``NotificationCenter`` posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

Members (6)

static · iOS 26.0+

makeMessage

TypeScript
static makeMessage(notification: Notification): Promise<(UndoManager_DidRedoChangeMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> UndoManager.DidRedoChangeMessage?

Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.

static · iOS 26.0+

makeNotification

TypeScript
static makeNotification(message: UndoManager_DidRedoChangeMessage): Promise<Notification>
Swift declaration
@MainActor static func makeNotification(_ message: UndoManager.DidRedoChangeMessage) -> Notification

Converts a posted main actor message into a notification for any observers. To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `MainActorMessage`. - Returns: The converted ``Notification``.

init · iOS 26.0+

init

TypeScript
static init(groupIsDiscardable: boolean): Promise<UndoManager_DidRedoChangeMessage>
Swift declaration
init(groupIsDiscardable: Bool)

Creates a did undo change message. - Parameter groupIsDiscardable: A Boolean value that indicates whether the undo group is discardable.

get · iOS 26.0+

groupIsDiscardable

TypeScript
get groupIsDiscardable(): Promise<boolean>
Swift declaration
var groupIsDiscardable: Bool

A Boolean value that indicates whether the undo group is discardable.

set · iOS 26.0+

groupIsDiscardable

TypeScript
setGroupIsDiscardable(value: boolean): Promise<void>
Swift declaration
var groupIsDiscardable: Bool

A Boolean value that indicates whether the undo group is discardable.

get · iOS 26.0+

name

TypeScript
static get nameValue(): Promise<NSNotification_Name>
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →