Post

Replies

Boosts

Views

Activity

Comment on How to refine the shape of an SKSpriteNode for tap gestures?
UITapGestureRecognizer is not affected by it: I did not try, but I understood from the doc that having set alpha to 0 would do it. Isn't it the case ? Is this the way Swift handles this? : I fear this is the way UIKit (not Swift, would be the same in ObjC) handles it. If you have a more complex form, you should probably anyway define a simple enclosing shape. For instance, enclose in an ellipse.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’21
Comment on emulate mouse click
Right, don't need it, unless you want to execute the tap once window activated. But then, need a CGEvent (I think you saw this already: https://stackoverflow.com/questions/41908620/how-to-simulate-mouse-click-from-mac-app-to-other-application)
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’21