From a3cfcc29082b391c8e9a7fccf30a8432d944c52f Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 30 Dec 2021 10:34:46 +0100 Subject: [PATCH] Remove conditional downcast --- ios/CameraView+RecordVideo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/CameraView+RecordVideo.swift b/ios/CameraView+RecordVideo.swift index 5e39bb4..a55de8e 100644 --- a/ios/CameraView+RecordVideo.swift +++ b/ios/CameraView+RecordVideo.swift @@ -125,7 +125,7 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud self.activateAudioSession() if let audioOutput = self.audioOutput, - let audioSettings = audioOutput.recommendedAudioSettingsForAssetWriter(writingTo: fileType) as? [String: Any] { + let audioSettings = audioOutput.recommendedAudioSettingsForAssetWriter(writingTo: fileType) { self.recordingSession!.initializeAudioWriter(withSettings: audioSettings) } }