targetedToEntity(_:)
Requires this gesture to target an entity or a descendant of entity.
Declaration
@MainActor @preconcurrency func targetedToEntity(_ entity: Entity) -> some Gesture<EntityTargetValue<Self.Value>>
Parameters
- entity:
The entity the gesture targets.
Return Value
A RealityCoordinateSpaceConverting value containing the original gesture value along with the targeted entity.