Instance Method

accessibilityScroll(_:)

Scrolls screen content in an application-specific way and returns the success or failure of the action.

Declaration

func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool

Parameters

direction

A constant that specifies the direction of the scrolling action. See UIAccessibilityScrollDirection for descriptions of valid constants.

Return Value

true if the scrolling action succeeds; otherwise, false. By default, this method returns false.

Discussion

Implement this method if a view in the view hierarchy supports a scroll by page action.

  • If the scrolling action succeeds for the specified direction, return true and post the pageScrolled notification.

  • If the scrolling action fails, accessibilityScroll: is called on a parent view in the hierarchy.

See Also

Performing an Action

func accessibilityActivate() -> Bool

Tells the element to activate itself and report the success or failure of the operation.

func accessibilityIncrement()

Tells the accessibility element to increment the value of its content.

func accessibilityDecrement()

Tells the accessibility element to decrement the value of its content.

func accessibilityPerformEscape() -> Bool

Dismisses a modal view and returns the success or failure of the action.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software