chore: Lint Swift
This commit is contained in:
parent
c078cdf933
commit
c5979688c8
@ -23,7 +23,7 @@ extension AVCaptureDevice.Format {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// compare video dimensions
|
// compare video dimensions
|
||||||
let leftVideo = self.videoDimensions
|
let leftVideo = videoDimensions
|
||||||
let rightVideo = other.videoDimensions
|
let rightVideo = other.videoDimensions
|
||||||
if leftVideo.height * leftVideo.width > rightVideo.height * rightVideo.width {
|
if leftVideo.height * leftVideo.width > rightVideo.height * rightVideo.width {
|
||||||
return true
|
return true
|
||||||
|
@ -89,7 +89,7 @@ extension AVCaptureDevice.Format {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if #available(iOS 13.0, *) {
|
if #available(iOS 13.0, *) {
|
||||||
if let isHighestPhotoQualitySupported = filter.value(forKey: "isHighestPhotoQualitySupported") as? Bool {
|
if let isHighestPhotoQualitySupported = filter.value(forKey: "isHighestPhotoQualitySupported") as? Bool {
|
||||||
if self.isHighestPhotoQualitySupported != isHighestPhotoQualitySupported {
|
if self.isHighestPhotoQualitySupported != isHighestPhotoQualitySupported {
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
// Copyright © 2021 mrousavy. All rights reserved.
|
// Copyright © 2021 mrousavy. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import AVFoundation
|
import AVFoundation
|
||||||
|
import Foundation
|
||||||
|
|
||||||
extension AVCaptureDevice.Format {
|
extension AVCaptureDevice.Format {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user