How to create an animation that moves / scrolls the visible part of the image at a uniform speed to the right? OR sooner: how to animate UIScrollView to the right?
Example: image width is 4968 pixels. The image is used as a full-screen background image. Only the first 1242px of 4968px (image width) should be visible at the beginning. The section of the visible image should move at the same speed to the right. 1242px images are visible at any time. When the end of the image is reached, this process must be repeated.

Here is my code so far. It is not useful to understand what I want to achieve, because it is incomplete, but you see that I used it in updating a function, etc.
override func update(_ currentTime: TimeInterval) {
if gameStarted == true {
enumerateChildNodes(withName: "background", using: ({
(node, error) in
let bg = node as! SKSpriteNode
bg.position = CGPoint(x: bg.position.x - 2, y: bg.position.y)
}
}))
}
}