Contents

scrollTo(x:)

Scrolls the position of the scroll view to the x value you provide.

Declaration

mutating func scrollTo(x: CGFloat)

Discussion

The scroll view chooses the y value based on the content insets of the scroll view and will clamp this value to only scroll to the size of its actual content.