4

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

iosLearner
  • 1,312
  • 1
  • 16
  • 30

0 Answers0