Is there an API similar to UIAccessibility.isVoiceOverRunning
to detect whether or not Voice Control is running in iOS 13? I am unable to find anything for this in the current beta docs.
Voice Control: https://www.apple.com/ios/ios-13-preview/features/ (see Accessibility section).
Here is a workaround when you need to show different UI when the user is in Voice Control.
Since there is no API like
UIAccessibility.isVoiceOverRunning
for Voice Control you'll need to overrideaccessibilityActivate
to know when the user is interacting with your app using an accessibility feature.