Instance Property

trackingImages

A set of images for ARKit to detect and track in the user's environment.

Declaration

var trackingImages: Set<ARReferenceImage> { get set }

Discussion

Use this property to choose known 2D images for ARKit to find in the user's environment and present as ARImageAnchor for use in your AR experience. Use an Xcode asset catalog to provide reference images for ARKit to detect, or define them programmatically with the ARReferenceImage class.

Set the maximumNumberOfTrackedImages property to determine how many images from this set ARKit attempts to track simultaneously.

See Also

Choosing Images to Track

var maximumNumberOfTrackedImages: Int

The maximum number of images to simultaneously track movement for.