Type Property

centeredVertically

Declaration

static var centeredVertically: UICollectionView.ScrollPosition { get }

Discussion

Scroll so that the item is centered vertically in the collection view. This option is mutually exclusive with the top and bottom options.