From c5979688c8818fe14039bf61a68a01dda936169c Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 3 Aug 2021 12:01:39 +0200 Subject: [PATCH] chore: Lint Swift --- ios/Extensions/AVCaptureDevice.Format+isBetterThan.swift | 2 +- ios/Extensions/AVCaptureDevice.Format+matchesFilter.swift | 2 +- ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Extensions/AVCaptureDevice.Format+isBetterThan.swift b/ios/Extensions/AVCaptureDevice.Format+isBetterThan.swift index e8cc45f..1156526 100644 --- a/ios/Extensions/AVCaptureDevice.Format+isBetterThan.swift +++ b/ios/Extensions/AVCaptureDevice.Format+isBetterThan.swift @@ -23,7 +23,7 @@ extension AVCaptureDevice.Format { } // compare video dimensions - let leftVideo = self.videoDimensions + let leftVideo = videoDimensions let rightVideo = other.videoDimensions if leftVideo.height * leftVideo.width > rightVideo.height * rightVideo.width { return true diff --git a/ios/Extensions/AVCaptureDevice.Format+matchesFilter.swift b/ios/Extensions/AVCaptureDevice.Format+matchesFilter.swift index 02911a1..35789a6 100644 --- a/ios/Extensions/AVCaptureDevice.Format+matchesFilter.swift +++ b/ios/Extensions/AVCaptureDevice.Format+matchesFilter.swift @@ -89,7 +89,7 @@ extension AVCaptureDevice.Format { return false } } - + if #available(iOS 13.0, *) { if let isHighestPhotoQualitySupported = filter.value(forKey: "isHighestPhotoQualitySupported") as? Bool { if self.isHighestPhotoQualitySupported != isHighestPhotoQualitySupported { diff --git a/ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift b/ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift index ffb8cde..c7571f8 100644 --- a/ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift +++ b/ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift @@ -6,8 +6,8 @@ // Copyright © 2021 mrousavy. All rights reserved. // -import Foundation import AVFoundation +import Foundation extension AVCaptureDevice.Format { /**