21 lines
		
	
	
		
			439 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			439 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
| //
 | |
| //  AVCapturePhotoOutput+mirror.swift
 | |
| //  mrousavy
 | |
| //
 | |
| //  Created by Marc Rousavy on 18.01.21.
 | |
| //  Copyright © 2021 mrousavy. All rights reserved.
 | |
| //
 | |
| 
 | |
| import AVFoundation
 | |
| 
 | |
| extension AVCapturePhotoOutput {
 | |
|   func mirror() {
 | |
|     connections.forEach { connection in
 | |
|       if connection.isVideoMirroringSupported {
 | |
|         connection.automaticallyAdjustsVideoMirroring = false
 | |
|         connection.isVideoMirrored = true
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 |