---
title: "init(for:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uitextinteraction/init(for:)"
---

# init(for:)

Creates a text interaction with the specified mode.

## Declaration

```swift
convenience init(for mode: UITextInteractionMode)
```

## Parameters

- `mode`: A mode determining the selection behaviors that the interaction will provide.

## Return Value

Return Value A newly initialized text interaction object.
