Information about the position and orientation of an image detected in a world-tracking AR session.


class ARImageAnchor : ARAnchor


When you run a world-tracking AR session and specify ARReferenceImage objects for the session configuration's detectionImages property, ARKit searches for those images in the real-world environment. When the session recognizes an image, it automatically adds to its list of anchors an ARImageAnchor for each detected image.

To find the extent of a recognized image in the scene, use the inherited transform property together with the physicalSize of the anchor's referenceImage.


Identifying Detected Images

var referenceImage: ARReferenceImage

The detected image referenced by the image anchor.


Inherits From

See Also

Image Detection and Tracking

Detecting Images in an AR Experience

React to known 2D images in the user’s environment, and use their positions to place AR content.

Tracking and Altering Images

Create images from rectangular shapes found in the user’s environment, and augment their appearance.

class ARReferenceImage

An image to be recognized in the real-world environment during a world-tracking AR session.