How to know if AVCaptureDevice.SystemUserInterface.videoEffects are supported for the current device?

29 views Asked by At

Calling AVCaptureDevice.showSystemUserInterface(.videoEffects) on an unsupported device or without an active video feed can result in a faulty screen.

How to programatically determinate if the current device supports videoEffects at all ?

I found which devices support Depth Control on Apple Support but I hardcoding isn't the best solution.

The faulty screen: enter image description here

The correct screen: enter image description here

0

There are 0 answers