Protocol

EntityGestureRecognizer

An type of gesture recognizer that works on entities.

Declaration

protocol EntityGestureRecognizer : UIGestureRecognizer

Topics

Specifying the Entity

var entity: HasCollision?

The entity on which the recognizer operates.

Required.

Specifying the Location

func location(in: Entity?) -> SIMD3<Float>?

Required. Default implementation provided.

See Also

Adding Gesture Recognizers to Entities

func installGestures(ARView.EntityGestures, for: HasCollision) -> [EntityGestureRecognizer]

Installs standard gestures onto the given entity, configured to be recognized simultaneously.

Beta
struct ARView.EntityGestures

The set of possible entity gesture recognizers.

Beta
func gestureRecognizer(UIGestureRecognizer, shouldRecognizeSimultaneouslyWith: UIGestureRecognizer) -> Bool

Determines whether two gesture recognizers should simultaneously recognize a gesture.

Beta
class EntityRotationGestureRecognizer

A gesture recognizer that uses rotation gestures involving two touches to rotate a given entity.

Beta
class EntityScaleGestureRecognizer

A gesture recognizer that uses a pinch gesture to scale or zoom an entity.

Beta
class EntityTranslationGestureRecognizer

A gesture recognizer that uses a pan gesture to move an entity.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software