SDKs
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
static var centeredVertically: UICollection View.Scroll Position { 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.