Invalidates all layout information and triggers a layout update.
- macOS 10.11+
Call this method when you make changes that require updating all of the current layout information. This method marks the layout as invalid and returns right away, so you can call this method multiple times from the same block of code without triggering multiple layout updates. During the next update cycle, the collection view requests new layout information and updates its contents accordingly.
If you override this method, you must call
super at some point in your implementation.