<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/accessibilityScroll(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)accessibilityScroll:"
  },
  "title" : "accessibilityScroll(_:)"
}
-->

# accessibilityScroll(_:)

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

```
@MainActor func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool
```

## Parameters

`direction`

A constant that specifies the direction of the scrolling action. See <doc://com.apple.documentation/documentation/UIKit/UIAccessibilityScrollDirection> for descriptions of valid constants.

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if the scrolling action succeeds; otherwise, [`NO`](/documentation/ObjectiveC/NO). By default, this method returns [`NO`](/documentation/ObjectiveC/NO).

## 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 [`YES`](/documentation/ObjectiveC/YES) and post the <doc://com.apple.documentation/documentation/UIKit/UIAccessibility/Notification/pageScrolled> notification.
- If the scrolling action fails, `accessibilityScroll:` is called on a parent view in the hierarchy.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)