We are using the Speech framework to enable users to interact with our app via voice commands. When a user says "start test" we send
DispatchQueue.main.async {
self.startButton.sendActions(for: .touchUpInside)
}
This works beautifully, except that the screen goes into auto lockout in the middle of a test. Apparently, using sendActions does not actually send a touch event to the OS.
My question is how can I tell the OS that a touch event happened programmatically?
Thank you