Contents

videoFieldOfView(for:geometricDistortionCorrected:)

Indicates the horizontal field of view for an aspect ratio, either uncorrected or corrected for geometric distortion.

Declaration

func videoFieldOfView(for aspectRatio: AVCaptureDevice.AspectRatio, geometricDistortionCorrected: Bool) -> Float

Discussion

A float indicating the field of view for the corresponding AVCaptureDevice.AspectRatio. Set AVCaptureDevice/geometricDistortionCorrected to true to receive the field of view corrected for geometric distortion. If this device format does not support dynamic aspect ratio, this function returns 0.

See Also

Determining dynamic aspect ratio support