Deceleration rates for the scroll view.


struct DecelerationRate


Deceleration Rates

static let normal: UIScrollView.DecelerationRate

The default deceleration rate for a scroll view.

static let fast: UIScrollView.DecelerationRate

A fast deceleration rate for a scroll view.


See Also

Getting the Scrolling State

var isTracking: Bool

Returns whether the user has touched the content to initiate scrolling.

var isDragging: Bool

A Boolean value that indicates whether the user has begun scrolling the content.

var isDecelerating: Bool

Returns whether the content is moving in the scroll view after the user lifted their finger.

var decelerationRate: UIScrollView.DecelerationRate

A floating-point value that determines the rate of deceleration after the user lifts their finger.