---
title: "init(identifier:bounds:state:subelements:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/appentityuielement/init(identifier:bounds:state:subelements:)"
---

# init(identifier:bounds:state:subelements:)

Creates a wrapper object that combines an app entity with additional information to make it discoverable by Apple Intelligence and Siri.

## Declaration

```swift
init(identifier: EntityIdentifier, bounds: CGRect, state: AppEntityUIElement.State = .init(), subelements: [AppEntityUIElement] = [])
```

## Parameters

- `identifier`: The identifier of an app entity that describes the content of a UI element.
- `bounds`: The UI element’s bounds in the local coordinate space of the entity provider’s associated custom view.
- `state`: The object that indicates whether the UI element is selected.
- `subelements`: An array of UI elements that represent a group of UI elements.
