I connected a tap gesture recogniser to a label in storyboard by dragging a tap gesture recogniser object onto the label. When I connect the outlet to the gesture recogniser I get this error:
How can I connect the tap gesture recogniser in storyboard to my code?
I have created the tap gesture in storyboard and added it to the view controller hierarchy by dragging the tap gesture onto the view controller.
You drag in the viewController, and try to apply to multiple objects (each cell's label: that's what "repeating content" means here). That cannot work as a gesture is attached to a unique object. So you need as many tapGestures as there are cells.
The simplest in your case would be to create the tap gesture in code, in the init of collectionCell.
Or try to declare the tapGesture in storyboard in the cell.