Returns the content offset to use after an animated layout update or change.
- iOS 7.0+
- tvOS 9.0+
The proposed point (in the coordinate space of the collection view’s content view) for the upper-left corner of the visible content. This represents the point that the collection view has calculated as the most likely value to use at the end of the animation.
The content offset that you want to use instead. The default implementation of this method returns the value in the
During layout updates, or when transitioning between layouts, the collection view calls this method to give you the opportunity to change the proposed content offset to use at the end of the animation. You might override this method if the animations or transition might cause items to be positioned in a way that is not optimal for your design.