Contents

didBecomeVisibleNotification

A notification that posts when a window becomes visible.

Declaration

nonisolated class let didBecomeVisibleNotification: NSNotification.Name

Discussion

The notification object is the visible window. This notification doesn’t contain a userInfo dictionary.

Switching between apps doesn’t generate visibility-related notifications for windows. Window visibility changes reflect changes to the window’s isHidden property and reflect only the window’s visibility within the app.

The system posts this notification on the main actor.

See Also

Responding to window-related notifications