Asks your data source object to provide the total number of sections.
- macOS 10.11+
The collection view requesting the information.
The number of sections in the specified collection view.
Implement this method when the organization of your data requires more than one section. If you do not implement this method, the collection view creates only one section.