Skip to content

AccessibilityNotification.LayoutChanged

Category: Structure

Platforms: iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+, watchOS 10.0+

Overview

A notification that an app posts when the layout of a screen changes.

Declaration

struct LayoutChanged

Details

Topics

  • Creating a layout change notification
  • init(Any?)

See Also

  • Notifications
  • struct Announcement
  • struct ScreenChanged
  • struct PageScrolled

  • Accessibility

  • AccessibilityNotification
  • AccessibilityNotification.LayoutChanged

Accessibility Notification .Layout Changed

Overview

Optionally, include a parameter that contains the accessibility element for VoiceOver to move to after processing the notification.

Topics (Grouped)

Creating a layout change notification

  • initAny?) — (; Creates a layout change notification.

Notifications

  • Announcement — struct; A notification that an app posts when it needs to convey an announcement to an assistive app.
  • ScreenChanged — struct; A notification that an app posts when a new view appears that occupies a major portion of the screen.
  • PageScrolled — struct; A notification that an app posts when a scroll action completes.

Code Examples

struct LayoutChanged

Source: https://developer.apple.com/documentation/accessibility/accessibilitynotification/layoutchanged