How to get format name from AVCaptureDeviceFormat in swift?

925 views Asked by At

Here my code in objective-c

for (AVCaptureDeviceFormat *format in [device formats]) {

       CFStringRef formatName = CMFormatDescriptionGetExtension([format formatDescription], kCMFormatDescriptionExtension_FormatName);

}

I need this code in swift, how can i?

i tried like this but giving error

enter image description here

0

There are 0 answers