Checking for only 4K support added
This commit is contained in:
parent
b1f649ec68
commit
d0937c42a5
|
|
@ -143,10 +143,9 @@ open class QRCodeReader: NSObject, AVCaptureMetadataOutputObjectsDelegate {
|
||||||
// MARK: - Private Methods
|
// MARK: - Private Methods
|
||||||
|
|
||||||
private func configureDefaultComponents() {
|
private func configureDefaultComponents() {
|
||||||
if defaultDevice?.supportsSessionPreset(.hd4K3840x2160) {
|
if let defaultDevice = defaultDevice,
|
||||||
|
defaultDevice.supportsSessionPreset(.hd4K3840x2160) {
|
||||||
session.sessionPreset = .hd4K3840x2160
|
session.sessionPreset = .hd4K3840x2160
|
||||||
} else {
|
|
||||||
session.sessionPreset = .photo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for output in session.outputs {
|
for output in session.outputs {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue