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