Contents

frame(forDictationResultPlaceholder:)

Asks for the rectangle for displaying the dictation placeholder animation.

Declaration

optional func frame(forDictationResultPlaceholder placeholder: Any) -> CGRect

Parameters

  • placeholder:

    A placeholder object provided by your app and used to identify the location of the dictation results.

Return Value

The rectangle, in the coordinate system of your input view, at which to display the dictation placeholder animation.

Discussion

While dictation results are being generated, UIKit displays the built-in dictation placeholder animation. Your implementation of this method should provide the rectangle at which to display this animation (at the location where the dictation results will be inserted).

See Also

Using dictation