---
title: "insertElements(_:beforeAction:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uimenubuilder/insertelements(_:beforeaction:)"
---

# insertElements(_:beforeAction:)

Insert elements before an identified action.

## Declaration

```swift
func insertElements(_ insertedElements: [UIMenuElement], beforeAction siblingIdentifier: UIAction.Identifier)
```

## Parameters

- `insertedElements`: The elements to insert.
- `siblingIdentifier`: The identifier of the action to insert elements before.
