<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: -",
    "macOS: 15.4.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -",
    "watchOS: 11.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppEntityUIElement/init(identifier:bounds:state:subelements:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A15EntityUIElementV10identifier6bounds5state11subelementsAcA0C10IdentifierV_So6CGRectVAC5StateVSayACGtcfc"
  },
  "title" : "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.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)