Type Property

centeredHorizontally

Declaration

static var centeredHorizontally: UICollectionView.ScrollPosition { get }

Discussion

Scroll so that the item is centered horizontally in the collection view. This option is mutually exclusive with the left and right options.