The point at which the origin of the content view is offset from the origin of the scroll view.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var contentOffset: CGPoint { get set }
Discussion
The default value is CGPoint
.
The point at which the origin of the content view is offset from the origin of the scroll view.
SDKs
Framework
var contentOffset: CGPoint { get set }
The default value is CGPoint
.
var content Size: CGSize
The size of the content view.
func set Content Offset(CGPoint, animated: Bool)
Sets the offset from the content view’s origin that corresponds to the receiver’s origin.