Initializer for conditional binding must have Optional type, not ‘[AVCaptureDevice]’

if a binding over if let is, for example so;

come this error message, because It is not an optional. My solution for this code, checking value changing. Like this;

Leave a Reply

Your email address will not be published.