<!--
{
  "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(_:bounds:state:subelements:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A15EntityUIElementV_6bounds5state11subelementsACx_So6CGRectVAC5StateVSayACGtcAA0aC0Rzlufc"
  },
  "title" : "init(_:bounds:state:subelements:)"
}
-->

# init(_: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<Entity>(_ entity: Entity, bounds: CGRect, state: AppEntityUIElement.State = .init(), subelements: [AppEntityUIElement] = []) where Entity : AppEntity
```

## Parameters

`entity`

The app entity that describes the content of an 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)