<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInput/frame(forDictationResultPlaceholder:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInput(im)frameForDictationResultPlaceholder:"
  },
  "title" : "frame(forDictationResultPlaceholder:)"
}
-->

# frame(forDictationResultPlaceholder:)

Asks for the rectangle for displaying the dictation placeholder animation.

```
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).

> Important:
> This method is called only if the custom text view client leverages system selection by subclassing `UITextView`. Other clients can use ``doc://com.apple.uikit/documentation/UIKit/UITextInput/dictationRecordingDidEnd()`` and ``doc://com.apple.uikit/documentation/UIKit/UITextInput/dictationRecognitionFailed()`` to implement a custom placeholder.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)