numberOfSections
The number of sections in the collection view.
Declaration
var numberOfSections: Int { get }Discussion
This property contains the number of sections reported by the data source object. If the collection view does not use a data source object, the value in this property is 1.