I get a function as a function parameter and want to set it to #selector. But I get an error message:
Argument of '#selector' cannot refer to a property
I have the following function:
private func addGestureRecognizerToItem(selector: () -> ()) { let labelGesture = UITapGestureRecognizer(target: self, action:
Any ideas how to handle this?
source share