Structure

ARView.EntityGestures

The set of possible entity gesture recognizers.

Declaration

struct EntityGestures

Topics

Recognizing Gesture Types

static let rotation: ARView.EntityGestures

A multitouch gesture used to rotate an entity.

static let scale: ARView.EntityGestures

A pinch gesture used to scale an entity.

static let translation: ARView.EntityGestures

A single touch pan gesture used to move entities along their anchoring plane.

Creating Gesture Option Sets

Testing for Membership

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

func contains(ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

Adding and Removing Options

func insert(ARView.EntityGestures) -> (inserted: Bool, memberAfterInsert: ARView.EntityGestures)

Adds the given element to the option set if it is not already a member.

func remove(ARView.EntityGestures) -> ARView.EntityGestures?

Removes the given element and all elements subsumed by it.

func subtract(ARView.EntityGestures)

Removes the elements of the given set from this set.

func subtracting(ARView.EntityGestures) -> ARView.EntityGestures

Returns a new set containing the elements of this set that do not occur in the given set.

Combining Options

func union(ARView.EntityGestures) -> ARView.EntityGestures

Returns a new option set of the elements contained in this set, in the given set, or in both.

func formUnion(ARView.EntityGestures)

Inserts the elements of another set into this option set.

func intersection(ARView.EntityGestures) -> ARView.EntityGestures

Returns a new option set with only the elements contained in both this set and the given set.

func formIntersection(ARView.EntityGestures)

Removes all elements of this option set that are not also present in the given set.

func symmetricDifference(ARView.EntityGestures) -> ARView.EntityGestures

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func formSymmetricDifference(ARView.EntityGestures)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

Comparing Options

func isSubset(of: ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isStrictSubset(of: ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isSuperset(of: ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func isStrictSuperset(of: ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isDisjoint(with: ARView.EntityGestures) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

Relationships

Conforms To

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.

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

Determines whether two gesture recognizers should simultaneously recognize a gesture.

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.