After a lot of digging around, I've been able to find the following solution/workaround:
func scrollUp() {
let app = XCUIApplication()
let relativeTouchPoint = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 1.0))
let relativeOffset = app.coordinate(withNormalizedOffset: CGVector(dx: 0, dy: -1))
relativeTouchPoint.press(forDuration: 0, thenDragTo: relativeOffset)
}
Topic:
App & System Services
SubTopic:
Core OS
Tags: