Instance Method

gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)

Determines whether two gesture recognizers should simultaneously recognize a gesture.

Declaration

@objc dynamic func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool

Parameters

gestureRecognizer

The first gesture recognizer.

otherGestureRecognizer

The second gesture recognizer.

Return Value

A Boolean value that’s true if the two recognizers should simultaneously recognize a gesture.

Relationships

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.

struct ARView.EntityGestures

The set of possible entity gesture recognizers.

class EntityRotationGestureRecognizer

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

class EntityScaleGestureRecognizer

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

class EntityTranslationGestureRecognizer

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

protocol EntityGestureRecognizer

An type of gesture recognizer that works on entities.