chore: Lint Swift

This commit is contained in:
Marc Rousavy 2021-08-03 12:01:39 +02:00
parent c078cdf933
commit c5979688c8
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 {

View File

@ -6,8 +6,8 @@
// Copyright © 2021 mrousavy. All rights reserved.
//
import Foundation
import AVFoundation
import Foundation
extension AVCaptureDevice.Format {
/**