allowsKeyboardScrolling
A Boolean value that determines whether the scroll view allows scrolling its content with hardware keyboard input.
Declaration
var allowsKeyboardScrolling: Bool { get set }Discussion
When this value is 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 true for apps that link against iOS 17 and later. Set this value to false to disable the ability to scroll content with hardware keyboard keys.