<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/appEntityUIElementProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit",
      "UIKit"
    ],
    "preciseIdentifier" : "s:So6UIViewC17_AppIntents_UIKitE26appEntityUIElementProviderSay0bC00bfG0VGAB_AE0bF17UIElementsContextVtcSgvp"
  },
  "title" : "appEntityUIElementProvider"
}
-->

# appEntityUIElementProvider

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

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

## 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:providing-contextual-cues-to-Apple-Intelligence-and-Siri> and
<doc://com.apple.documentation/documentation/appintents>.
```

---

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)