diff --git a/ios/Classes/MobileScannerPlugin.swift b/ios/Classes/MobileScannerPlugin.swift index 402553711..00cbcbbcc 100644 --- a/ios/Classes/MobileScannerPlugin.swift +++ b/ios/Classes/MobileScannerPlugin.swift @@ -103,7 +103,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin { let returnImage: Bool = (call.arguments as! Dictionary)["returnImage"] as? Bool ?? false let speed: Int = (call.arguments as! Dictionary)["speed"] as? Int ?? 0 let timeoutMs: Int = (call.arguments as! Dictionary)["timeout"] as? Int ?? 0 - self.mobileScanner.timeoutSeconds = Double(timeoutMs / 1000) + self.mobileScanner.timeoutSeconds = timeoutMs / Double(1000) let formatList = formats.map { format in return BarcodeFormat(rawValue: format)} var barcodeOptions: BarcodeScannerOptions? = nil