iOS 13 has voice dictation button in UISearchBar in all system applications, which duplicates mic button on system keyboard and shows dictation view:
But when I create new project in Xcode, add UISearchBar, and run application on device, it doesn't have mic button on UISearchBar.
Is there a way to make my application show that mic button on UISearchBar?
There is a UISearchTextField instance in the UISearchBar. You can set the textField.rightView to a view of microphone. In the microphone button handler, you do the the speech-to-text recognition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With