CompositorLayer, Metal and Alert

Hello. I am creating an app for APV in Metal. I have a CompositorLayer that launches a thread. What can I do to detect the environment alert to stop the thread until it is accepted by the user? If I don't stop the thread, I have problems with the hand tracking alert. Thank you.

what problems are you seeing with the hand tracking alert?

CompositorLayer, Metal and Alert
 
 
Q