---
title: AppEntityUIElement
framework: appintents
role: symbol
role_heading: Structure
path: appintents/appentityuielement
---

# AppEntityUIElement

A type that wraps your app entity and adds information to make a custom view’s content discoverable by Apple Intelligence.

## Declaration

```swift
struct AppEntityUIElement
```

## Mentioned in

Providing contextual cues to Apple Intelligence and Siri

## Overview

Overview A custom view where your app manages state for the user interface or you use custom drawing to render the interface. For example, you might use a custom list or tab implementation and manage selection and other states in the app, or you might use Metal to render the interface. If either applies to your app’s interface, make content discoverable by Apple Intelligence using appEntityUIElementProvider and provide the system with a list of AppEntityUIElements. When your app uses a custom view and your app manages its state or you use custom drawing to render a UI element, you need to implement your own appEntityUIElementProvider. This closure provides the system with AppEntityUIElement objects that combine the app entity for your content and additional information with spatial and state information to help the system understand onscreen content. For more information, refer to doc:Making-onscreen-content-available-to-siri-and-apple-intelligence and App Intents.

## Topics

### Structures

- [AppEntityUIElement.State](appintents/appentityuielement/state-swift.struct.md)

### Initializers

- [init(_:bounds:state:subelements:)](appintents/appentityuielement/init(_:bounds:state:subelements:).md)
- [init(identifier:bounds:state:subelements:)](appintents/appentityuielement/init(identifier:bounds:state:subelements:).md)

### Instance Properties

- [bounds](appintents/appentityuielement/bounds.md)
- [identifier](appintents/appentityuielement/identifier.md)
- [state](appintents/appentityuielement/state-swift.property.md)
- [subelements](appintents/appentityuielement/subelements.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### View-entity association

- [AppEntityUIElementsContext](appintents/appentityuielementscontext.md)
