<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScrollView/allowsKeyboardScrolling",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIScrollView(py)allowsKeyboardScrolling"
  },
  "title" : "allowsKeyboardScrolling"
}
-->

# allowsKeyboardScrolling

A Boolean value that determines whether the scroll view allows scrolling its content with hardware keyboard input.

```
var allowsKeyboardScrolling: Bool { get set }
```

## Discussion

When this value is <doc://com.apple.documentation/documentation/Swift/true>, the scroll view animates its content offset in response to input from hardware keyboard keys like Page Up, Page Down, Home, End, and the arrow keys. The scroll view needs to have focus or be first responder to receive these key events.

The default value is <doc://com.apple.documentation/documentation/Swift/true> for apps that link against iOS 17 and later. Set this value to <doc://com.apple.documentation/documentation/Swift/false> to disable the ability to scroll content with hardware keyboard keys.

---

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)