react-native-vision-camera/ios/Extensions/AVCaptureMovieFileOutput+mirror.swift
2021-03-09 10:53:29 +01:00

20 lines
383 B
Swift

//
// AVCaptureMovieFileOutput+mirror.swift
// Cuvent
//
// Created by Marc Rousavy on 18.01.21.
// Copyright © 2021 Facebook. All rights reserved.
//
import AVFoundation
extension AVCaptureMovieFileOutput {
func mirror() {
connections.forEach { connection in
if connection.isVideoMirroringSupported {
connection.isVideoMirrored = true
}
}
}
}