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

# removeDictationResultPlaceholder(_:willInsertResult:)

Tells the view that the specified placeholder object is unnecessary.

```
optional func removeDictationResultPlaceholder(_ placeholder: Any, willInsertResult: Bool)
```

## Parameters

`placeholder`

The placeholder object that is no longer needed.

`willInsertResult`

The value of this parameter is <doc://com.apple.documentation/documentation/Swift/true> if the dictation value was generated successfully or <doc://com.apple.documentation/documentation/Swift/false> if an error occurred.

## Discussion

If the value in the `willInsertResult` parameter is <doc://com.apple.documentation/documentation/Swift/false>, the placeholder animation is not replaced by an actual dictation result. When this happens, the system still removes the placeholder animation and removes the strong reference to your placeholder object.

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