Moves a section from its current location to a new location.
- macOS 10.11+
The index of the section that you want to move.
The new index at which to insert the section.
Use this method to reorganize sections and their contained items. Always update your data source object before calling this method. Calling this method kicks off an update (and possible animations) to move the specified section to its new location. Specifically, the collection view asks the layout object for any updated layout attributes related to the new sections or any existing sections. If the layout attributes of any visible items changed, those changes are animated into place.
When inserting or deleting multiple sections and items, you can animate all of your changes at once using the