chore: Lint Swift
This commit is contained in:
parent
c078cdf933
commit
c5979688c8
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -6,8 +6,8 @@
|
||||
// Copyright © 2021 mrousavy. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import AVFoundation
|
||||
import Foundation
|
||||
|
||||
extension AVCaptureDevice.Format {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user