Instance Property


The size of the content view.


var contentSize: CGSize { get set }


The unit of size is points. The default size is CGSizeZero.

See Also

Managing the Content Size and Offset

var contentOffset: CGPoint

The point at which the origin of the content view is offset from the origin of the scroll view.

func setContentOffset(CGPoint, animated: Bool)

Sets the offset from the content view’s origin that corresponds to the receiver’s origin.