---
title: "frame(forDictationResultPlaceholder:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextinput/frame(fordictationresultplaceholder:)"
---

# frame(forDictationResultPlaceholder:)

Asks for the rectangle for displaying the dictation placeholder animation.

## Declaration

```swift
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

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

## Discussion

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). important: This method is called only if the custom text view client leverages system selection by subclassing UITextView. Other clients can use dictationRecordingDidEnd() and dictationRecognitionFailed() to implement a custom placeholder.

## See Also

### Using dictation

- [dictationRecordingDidEnd()](uikit/uitextinput/dictationrecordingdidend().md)
- [dictationRecognitionFailed()](uikit/uitextinput/dictationrecognitionfailed().md)
- [insertDictationResult(_:)](uikit/uitextinput/insertdictationresult(_:).md)
- [insertDictationResultPlaceholder](uikit/uitextinput/insertdictationresultplaceholder.md)
- [removeDictationResultPlaceholder(_:willInsertResult:)](uikit/uitextinput/removedictationresultplaceholder(_:willinsertresult:).md)
