Hiding keyboard when VoiceOver is active

I am looking for an elegant way to hide a keyboard when the VoiceOver is on.

How can it be accomplished? Thanks.

For the particular UI containing the keyboard, resign the current first responder control when UIAccessibility.isVoiceOverRunning is true.

Hiding keyboard when VoiceOver is active
 
 
Q