chore: Lint

This commit is contained in:
Marc Rousavy
2021-12-10 09:44:54 +01:00
parent c3039c94c6
commit 9301430165
6 changed files with 22 additions and 22 deletions

View File

@@ -42,13 +42,13 @@ extension AVCaptureDevice.Format {
"maxFrameRate": $0.maxFrameRate,
]
},
"pixelFormat": CMFormatDescriptionGetMediaSubType(formatDescription).toString()
"pixelFormat": CMFormatDescriptionGetMediaSubType(formatDescription).toString(),
]
if #available(iOS 13.0, *) {
dict["isHighestPhotoQualitySupported"] = self.isHighestPhotoQualitySupported
}
return dict
}
}

View File

@@ -7,11 +7,11 @@
//
extension FourCharCode {
func toString() -> String {
var s: String = String (UnicodeScalar((self >> 24) & 255)!)
s.append(String(UnicodeScalar((self >> 16) & 255)!))
s.append(String(UnicodeScalar((self >> 8) & 255)!))
s.append(String(UnicodeScalar(self & 255)!))
return (s)
}
func toString() -> String {
var s = String(UnicodeScalar((self >> 24) & 255)!)
s.append(String(UnicodeScalar((self >> 16) & 255)!))
s.append(String(UnicodeScalar((self >> 8) & 255)!))
s.append(String(UnicodeScalar(self & 255)!))
return (s)
}
}