react-native-vision-camera/ios/Extensions/AVCapturePhotoOutput+mirror.swift
Marc Rousavy 00c8970366 Add iOS
2021-02-19 16:28:05 +01:00

20 lines
409 B
Swift

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