diff --git a/src/ios/QRScanner.swift b/src/ios/QRScanner.swift index d98099cb..ae410481 100644 --- a/src/ios/QRScanner.swift +++ b/src/ios/QRScanner.swift @@ -197,8 +197,8 @@ class QRScanner : CDVPlugin, AVCaptureMetadataOutputObjectsDelegate { } @objc func makeOpaque(){ - self.webView?.isOpaque = false - self.webView?.backgroundColor = UIColor.clear + self.webView?.isOpaque = true + self.webView?.backgroundColor = UIColor.white } @objc func boolToNumberString(bool: Bool) -> String{ @@ -468,7 +468,7 @@ class QRScanner : CDVPlugin, AVCaptureMetadataOutputObjectsDelegate { @objc func openSettings(_ command: CDVInvokedUrlCommand) { if #available(iOS 10.0, *) { - guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { + guard let settingsUrl = URL(string: UIApplicationOpenSettingsURLString) else { return } if UIApplication.shared.canOpenURL(settingsUrl) { @@ -481,7 +481,7 @@ class QRScanner : CDVPlugin, AVCaptureMetadataOutputObjectsDelegate { } else { // pre iOS 10.0 if #available(iOS 8.0, *) { - UIApplication.shared.openURL(NSURL(string: UIApplication.openSettingsURLString)! as URL) + UIApplication.shared.openURL(NSURL(string: UIApplicationOpenSettingsURLString)! as URL) self.getStatus(command) } else { self.sendErrorCode(command: command, error: QRScannerError.open_settings_unavailable)