Search code examples
eventsswiftwatchkit

How to trigger events in apple watchKit?


I wonder how to trigger events programmatically in apple watchKit. For example how to fake a touch of a button in watchKit or how to fake a long touch of the whole screen? (in swift)


Solution

  • There is no way to get the selection action from a WKInterfaceButton. You can however, just call the method directly on your InterfaceController.