Returns the layout attributes of an item when it is being moved interactively by the user.
- iOS 9.0+
- tvOS 9.0+
The index path of the item being moved.
The current position of the item in the collection view’s coordinate system.
The layout attributes of the item while it is at the specified position.
When an item is moving because of user interactivity, the layout object uses this method to retrieve layout attributes to use for the item while it is at the specified position. The default implementation of this method returns a copy of the item’s existing attributes with two changes: the
center point is set to the value in
position and the
z value is set to
NSInteger so that the item floats above other items in the collection view.
Subclasses can override this method and modify additional layout attributes as needed. If you override this method, call
super first to retrieve the item’s existing attributes and then make your changes to the returned structure.