---
title: "init(delegate:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uilargecontentviewerinteraction/init(delegate:)"
---

# init(delegate:)

Creates an interaction object with the specified delegate.

## Declaration

```swift
init(delegate: (any UILargeContentViewerInteractionDelegate)?)
```

## Parameters

- `delegate`: An object that implements the doc://com.apple.uikit/documentation/UIKit/UILargeContentViewerInteractionDelegate protocol.

## Discussion

Discussion To add the interaction to a view, use addInteraction(_:).
