UICollectionViewFlowLayout.ScrollDirection UICollectionViewFlowLayout.ScrollDirection Property

Definition

The scrolling direction, which is at right angles to the flow direction.

[get: Foundation.Export("scrollDirection")]
[set: Foundation.Export("setScrollDirection:")]
public virtual UIKit.UICollectionViewScrollDirection ScrollDirection { get; set; }
member this.ScrollDirection : UIKit.UICollectionViewScrollDirection with get, set

Property Value

Remarks

By default, cells are laid out with a left-to-right flow direction and wrap top-to-bottom. If the number of cells exceeds screen real estate, the UICollectionView will scroll vertically.

If the application developer sets ScrollDirection to Horizontal, cells will be laid out top-to-bottom and wrap left-to-right.

Applies to