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.