Collection view generated codes are separated into multiple files.
First, a collection view is declared and setup in artboard generated file. The collection layout is configured and the collection view datasource is configured in this file too.
A separate file is used to hold the collection view datasource objects and its model.
For collection view cells, headers, footers and other supplementary views. Each cell view generate its own file.