Hello everyone,
I have a method that needs to check what kind of recognizer a UIGestureRecognizer is. In looking up how to do that, I have found that Swift appears to lack any kind of type comparison or member checking. I found Type and dynamicType, but those don't appear to be usable in comparisons. For instance, this won't work:
if gestureRecognizer.metaType==UITapGestureRecognizer.metaType
I tried mixing Type in there as well, but that fails too. There must be a way to do this that I'm overlooking, but I'm not sure what it is. Any suggestions would be great. Thanks.
--
Have a great day,
Alex Hall