---
title: "share(text:from:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinteraction/share(text:from:)"
---

# share(text:from:)

Presents standard UI for someone to share text from a browser text view.

## Declaration

```swift
func share(text: String, from presentationRect: CGRect)
```

## Parameters

- `text`: The text to share.
- `presentationRect`: The area in the view containing the text, which the system uses to locate the sharing UI.

## See Also

### Sharing and defining text

- [showDictionary(forTextInContext:definingTextInRange:from:)](browserenginekit/betextinteraction/showdictionary(fortextincontext:definingtextinrange:from:).md)
