We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0568b94 + 2c73c8b commit c785971Copy full SHA for c785971
Sources/CodeScanner/ScannerViewController.swift
@@ -119,14 +119,11 @@ extension CodeScannerView {
119
}
120
121
override public func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
122
- guard let simulatedData = delegate?.parent.simulatedData else {
123
- print("Simulated Data Not Provided!")
124
- return
125
- }
126
-
127
// Send back their simulated data, as if it was one of the types they were scanning for
128
- let result = ScanResult(string: simulatedData, type: delegate?.parent.codeTypes.first ?? .qr)
129
- delegate?.found(result)
+ found(ScanResult(
+ string: parentView.simulatedData,
+ type: parentView.codeTypes.first ?? .qr
+ ))
130
131
132
#else
0 commit comments