Instance Method


Schedules Vision requests to be performed.


func perform(_ requests: [VNRequest]) throws



An array of Vision requests to perform.

Return Value

Returns true if all requests were scheduled and performed. If the return value is false, check the error parameter.


The function returns after all requests have either completed or failed. Check individual requests and errors for their respective successes and failures.

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