is-camera-on
is-camera-on copied to clipboard
Tests
Not entirely sure how to write tests for this, but I was thinking I could first assert it's false and the open Photo Booth and assert it's true, as Photo Booth activates the camera.
How about creating a test utility class which actually access and turn on/off the system camera? I found this repo which is accessing the camera from the swift playground and show the camera view on playground live view. Not sure this helps but throwing out an idea