---
title: "showDictionary(forTextInContext:definingTextInRange:from:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinteraction/showdictionary(fortextincontext:definingtextinrange:from:)"
---

# showDictionary(forTextInContext:definingTextInRange:from:)

Presents a dictionary definition for the supplied text.

## Declaration

```swift
func showDictionary(forTextInContext textWithContext: String, definingTextInRange range: NSRange, from presentationRect: CGRect)
```

## Parameters

- `textWithContext`: The text to supply a definition for, embedded in the sentence in which it appears in the text view’s document.
- `range`: The range of the word to define in the context text.
- `presentationRect`: The location of the text in the view, which the system uses to position the definition UI.

## See Also

### Sharing and defining text

- [share(text:from:)](browserenginekit/betextinteraction/share(text:from:).md)
