Instance Property

sectionHeadersPinToVisibleBounds

A Boolean value indicating whether headers pin to the top of the collection view bounds during scrolling.

Declaration

var sectionHeadersPinToVisibleBounds: Bool { get set }

Discussion

When this property is true, section header views scroll with content until they reach the top of the screen, at which point they are pinned to the upper bounds of the collection view. Each new header view that scrolls to the top of the screen pushes the previously pinned header view offscreen.

The default value of this property is false.

See Also

Pinning Headers and Footers

var sectionFootersPinToVisibleBounds: Bool

A Boolean value indicating whether footers pin to the bottom of the collection view bounds during scrolling.