---
title: appEntityUIElementProvider
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/appentityuielementprovider
---

# appEntityUIElementProvider

return AppEntityUIElement( identifier: EntityIdentifier( for: PhotoModel.self, identifier: photo.id ), bounds: photo.frame, state: State(isSelected: photo.isSelected) ) } } } }

## Declaration

```swift
@MainActor @preconcurrency var appEntityUIElementProvider: ((UIView, AppEntityUIElementsContext) -> [AppEntityUIElement])? { get set }
```

## Discussion

Discussion

> Note: The order of the returned elements isn't relevant.

If your custom view shows content you can describe with a single app entity, use the ``appEntityIdentifier`` property instead to associate the app entity with your custom view.

For more information, refer to <doc:Making-onscreen-content-available-to-siri-and-apple-intelligence> and <doc://com.apple.documentation/documentation/appintents>.
