---
title: "interactionWillBegin(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextinteractiondelegate/interactionwillbegin(_:)"
---

# interactionWillBegin(_:)

Tells the delegate that the text interaction will begin.

## Declaration

```swift
optional func interactionWillBegin(_ interaction: UITextInteraction)
```

## Parameters

- `interaction`: The text interaction that called this method.

## See Also

### Handling text interaction events

- [interactionShouldBegin(_:at:)](uikit/uitextinteractiondelegate/interactionshouldbegin(_:at:).md)
- [interactionDidEnd(_:)](uikit/uitextinteractiondelegate/interactiondidend(_:).md)
