chore: Lint
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user