chore: Update swiftlint to latest (#2398)

This commit is contained in:
Marc Rousavy
2024-01-16 18:01:41 +01:00
committed by GitHub
parent bdad4e1acb
commit 9c66a09582
3 changed files with 11 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ extension AVCaptureOutput {
Mirrors the video output if possible.
*/
func mirror() {
connections.forEach { connection in
for connection in connections {
if connection.isVideoMirroringSupported {
connection.automaticallyAdjustsVideoMirroring = false
connection.isVideoMirrored = true
@@ -31,7 +31,7 @@ extension AVCaptureOutput {
*/
func setOrientation(_ orientation: Orientation) {
// Set orientation for each connection
connections.forEach { connection in
for connection in connections {
#if swift(>=5.9)
if #available(iOS 17.0, *) {
// Camera Sensors are always in landscape rotation (90deg).