Contents

AppEntityUIElement

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

Declaration

struct AppEntityUIElement

Mentioned in

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

Initializers

Instance Properties

See Also

View-entity association