How to Trigger iOS Built-in Dictation for a Custom Input Field in SwiftUI?
I am working on integrating a dictation feature into a custom SwiftUI input field within an iOS app. My specific aim is to have a button adjacent to the input field that, when tapped, activates iOS’s built-in dictation so users can speak their input. While iOS automatically provides dictation for standard search bar inputs, there isn’t a straightforward method for implementing this for custom input fields. I found the TextInputDictationActivation in Apple’s documentation (link) but am unsure if it fits this particular use case or how to use it effectively for a custom input field.