One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppEntityUIElementsContext

struct · iOS 18.4+ · SDK 27.1

struct AppEntityUIElementsContext

Contextual information for UI elements you make discoverable by Apple Intelligence. When you implement your custom app entity provider to make a custom view's content discoverable by Apple Intelligence and Siri, you provide the system with ``AppEntityUIElement`` objects that combine the app entity for a view's content with additional information. The `AppEntityUIElementsContext` holds this additional information that the system uses to understand where content appears onscreen.

Members (2)

get · iOS 18.4+

bounds

TypeScript
get bounds(): { x: number; y: number; width: number; height: number }
Swift declaration
let bounds: CGRect

The bounds that the system uses to understand the location of a UI element within the local coordinate space.

get · iOS 18.4+

requests

TypeScript
get requests(): Array<AppEntityUIElementsContext_ElementsRequest>
Swift declaration
let requests: Set<AppEntityUIElementsContext.ElementsRequest>

The set of requests for elements from the system. UI elements that satisfy any of these requests should be returned.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →