9ea158ad8f
* rename 1/n * 2 * 3 * fix indent
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
|
|
}
|
|
}
|
|
}
|
|
}
|