You can't write to self.state
in the subclass unless you import UIGestureRecognizerSubclass.h
as indicated here.
In a Swift environment, I'm confused how I'd go about importing this. I tried import UIGestureRecognizerSubclass.h
, and without the .h
, but I still can't write to self.state
.
How would I accomplish this?