UICollectionViewScrollPosition Enum

Definition

An enumeration of values used to specify to where a UIView should end up after a scroll into a UICollectionView.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UICollectionViewScrollPosition
type UICollectionViewScrollPosition = 
Inheritance
UICollectionViewScrollPosition
Attributes

Fields

Bottom 4

Scrolls so that the item is positioned at the bottom of the collection view.

CenteredHorizontally 16

Scrolls so that the item is centered horizontally in the collection view.

CenteredVertically 2

Scrolls so that the item is centered vertically in the collection view.

Left 8

Scrolls so that the item is positioned at the left edge of the collection view.

None 0

Do not scroll the item into the view.

Right 32

Scrolls so that the item is positioned at the right edge of the collection view.

Top 1

Scrolls so that the item is positioned at the top of the view's bounds.

Applies to

See also