No idea what you mean by it freezes the Camera feed, and you don't exactly say how those cameraStatus and isAuthorized variables are used. I assume the initial value of isAuthorized is false ? You don't show that in the code. Do you need two variables? It seems: whenever isAuthorized is true, cameraStatus is .authorised; and vice versa, when isAuthorized is false, cameraStatus is notAuthorised. Except in the last case: @unknown default: where isAuthorized is true but cameraStatus is notAuthorised. Could this be your issue? Could you use just one variable to cut down on the complexity?
Topic:
Privacy & Security
SubTopic:
General
Tags: