Enumeration

UIScrollViewContentInsetAdjustmentBehavior

Constants indicating how safe area insets are added to the adjusted content inset.

Topics

Enumeration Cases

case automatic

Automatically adjust the scroll view insets.

case scrollableAxes

Adjust the insets only in the scrollable directions.

case never

Do not adjust the scroll view insets.

case always

Always include the safe area insets in the content adjustment.

See Also

Managing the Content Inset Behavior

var adjustedContentInset: UIEdgeInsets

The insets derived from the content insets and the safe area of the scroll view.

var contentInset: UIEdgeInsets

The custom distance that the content view is inset from the safe area or scroll view edges.

var contentInsetAdjustmentBehavior: UIScrollViewContentInsetAdjustmentBehavior

The behavior for determining the adjusted content offsets.

func adjustedContentInsetDidChange()

Called when the adjusted content insets of the scroll view change.