Enumeration

UICollectionLayoutSectionOrthogonalScrollingBehavior

The scrolling behavior of the layout's sections in relation to the main layout axis.

Declaration

typedef enum UICollectionLayoutSectionOrthogonalScrollingBehavior : NSInteger {
    ...
} UICollectionLayoutSectionOrthogonalScrollingBehavior;

Overview

By default, each section lays out its content along the main axis of its layout, defined by the layout configuration's scrollDirection property. You can change this behavior for a particular section by setting its orthogonalScrollingBehavior property to a different value than its default UICollectionLayoutSectionOrthogonalScrollingBehaviorNone. Setting any other value for this property makes the section lay out its content orthogonally to the main layout axis.

Diagram of a collection view layout with multiple sections. The collection view sections are laid out vertically, so the collection view scrolls on the vertical axis to reveal more content. The content in the top section of the collection view scrolls on the horizontal axis, orthogonally to the main layout axis of the collection view's layout.

Topics

Enumeration Cases

UICollectionLayoutSectionOrthogonalScrollingBehaviorNone

The section does not allow users to scroll its content orthogonally.

UICollectionLayoutSectionOrthogonalScrollingBehaviorContinuous

The section allows users to scroll its content orthogonally with continuous scrolling.

UICollectionLayoutSectionOrthogonalScrollingBehaviorContinuousGroupLeadingBoundary

The section allows users to scroll its content orthogonally, coming to a natural stop at the leading boundary of the visible group.

UICollectionLayoutSectionOrthogonalScrollingBehaviorPaging

The section allows users to page its content orthogonally.

UICollectionLayoutSectionOrthogonalScrollingBehaviorGroupPaging

The section allows users to page its content orthogonally one group at a time.

UICollectionLayoutSectionOrthogonalScrollingBehaviorGroupPagingCentered

The section allows users to page its content orthogonally one group at a time, centering each group.