Instance Property

normalizedPosition

A value that indicates the distance of the current cell from the collection view's center cell.

Declaration

var normalizedPosition: CGFloat { get set }

Discussion

A negative value indicates that the cell is positioned to the left of the center cell in the collection view. A positive value indicates that the cell is positioned to the right of the center cell. A 0 value indicates the cell is in the neutral position, in the center of the collection view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software