I would like to know if AssistiveTouch is enabled or not, because my App wants to give the user instructions how to set it up properly for a certain use case.
I tried getting UIAccessibility.isAssistiveTouchRunning
but it never returns true. I even put it in a timer and switched AssistiveTouch on and off but it always returns false. I then added UIAccessibility.assistiveTouchStatusDidChangeNotification
like so:
NotificationCenter.default.addObserver(forName: UIAccessibility.assistiveTouchStatusDidChangeNotification, object: self, queue: OperationQueue.current, using: { notification in
print(notification)
})
but this never gets triggered.
What am I missing? Is this feature not available?
Greetings krjw
EDIT 1
I tried isVoiceOverRunning
and it works. I can't seem to get further with this.