---
title: "init(_:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uideferredmenuelement/provider/init(_:)"
---

# init(_:)

## Declaration

```swift
convenience init(_ elementProvider: @escaping (@escaping ([UIMenuElement]) -> Void) -> Void)
```

## Parameters

- `elementProvider`: An asynchronous element provider block. Call this block’s completion handler when the responder’s menu items are available.

## Discussion

Discussion Creates a deferred menu element provider with an asynchronous block.
