We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b734b91 commit 67c52a3Copy full SHA for 67c52a3
1 file changed
Sources/CodeScanner/CodeScanner.swift
@@ -9,6 +9,18 @@
9
import AVFoundation
10
import SwiftUI
11
12
+public protocol CodeScannerLoggerProtocol {
13
+ func log(
14
+ level: String,
15
+ message: String,
16
+ file: String,
17
+ function: String,
18
+ line: UInt
19
+ )
20
+}
21
+
22
+public var codeScannerLogger: CodeScannerLoggerProtocol?
23
24
/// An enum describing the ways CodeScannerView can hit scanning problems.
25
public enum ScanError: Error {
26
/// The camera could not be accessed.
0 commit comments