Fix 2 SwiftLint errors
This commit is contained in:
parent
84f9709399
commit
d05525ad01
@ -11,7 +11,7 @@ import Foundation
|
||||
|
||||
extension CameraView: AVCaptureMetadataOutputObjectsDelegate {
|
||||
func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
|
||||
guard metadataObjects.count > 0 else {
|
||||
if metadataObjects.isEmpty {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,8 @@ extension AVCaptureDevice.Format {
|
||||
return false
|
||||
}
|
||||
}
|
||||
if let autoFocusSystem = filter.value(forKey: "autoFocusSystem") as? String, let avAutoFocusSystem = try? AVCaptureDevice.Format.AutoFocusSystem(withString: autoFocusSystem) {
|
||||
if let autoFocusSystem = filter.value(forKey: "autoFocusSystem") as? String,
|
||||
let avAutoFocusSystem = try? AVCaptureDevice.Format.AutoFocusSystem(withString: autoFocusSystem) {
|
||||
if self.autoFocusSystem != avAutoFocusSystem {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user