Instance Method


Determines whether the reference image is valid.


func validate(completionHandler: @escaping (Error?) -> Void)


ARKit considers certain images invalid for image tracking (for example, an image that's all white). Call this function on a reference image you create programmatically to make sure ARKit can track it, before passing it in to your session's detectionImages array.

You only need this function when you create a reference image programmatically, because Xcode performs this validation for you when you create a reference image in an asset catalog.

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