---
title: "removeDictationResultPlaceholder(_:willInsertResult:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextinput/removedictationresultplaceholder(_:willinsertresult:)"
---

# removeDictationResultPlaceholder(_:willInsertResult:)

Tells the view that the specified placeholder object is unnecessary.

## Declaration

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

Discussion If the value in the willInsertResult parameter is 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 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)
- [frame(forDictationResultPlaceholder:)](uikit/uitextinput/frame(fordictationresultplaceholder:).md)
