Instance Method


Schedules Vision requests to be performed.


- (BOOL)performRequests:(NSArray<VNRequest *> *)requests error:(NSError * _Nullable *)error;



A nonempty array of VNRequest instances to perform.


An optional error parameter populated when problems arise in scheduling the requests. Check if the return value is NO.

Return Value

Returns YES if all requests were scheduled and performed. If the return value is NO, 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