Sets the offset from the content view’s origin that corresponds to the receiver’s origin.
On This Page
func setContentOffset(_ contentOffset: CGPoint, animated: Bool)
A point (expressed in points) that is offset from the content view’s origin.
true to animate the transition at a constant velocity to the new offset, false to make the transition immediate.
var contentSize: CGSize
The size of the content view.
var contentOffset: CGPoint
The point at which the origin of the content view is offset from the origin of the scroll view.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.