allowsSelection
A Boolean value that indicates whether users can select items in the collection view.
Declaration
var allowsSelection: Bool { get set }Discussion
If the value of this property is true (the default), users can select items. If you want more fine-grained control over the selection of items, you must provide a delegate object and implement the appropriate methods of the UICollectionViewDelegate protocol.