diff --git a/QuickScanner/Sources/QuickScanner+Types.swift b/QuickScanner/Sources/QuickScanner+Types.swift index 8a3aefd..f5cf4ea 100644 --- a/QuickScanner/Sources/QuickScanner+Types.swift +++ b/QuickScanner/Sources/QuickScanner+Types.swift @@ -9,6 +9,6 @@ import Foundation import AVFoundation -public typealias BarcodeType = AVMetadataObject.ObjectType public typealias CameraPosition = AVCaptureDevice.Position public typealias CodeType = AVMetadataObject.ObjectType + diff --git a/QuickScanner/Sources/QuickScannerDelegate.swift b/QuickScanner/Sources/QuickScannerDelegate.swift index 41f5433..b8922e9 100644 --- a/QuickScanner/Sources/QuickScannerDelegate.swift +++ b/QuickScanner/Sources/QuickScannerDelegate.swift @@ -13,7 +13,7 @@ public protocol QuickScannerDelegate: class { var videoPreview: UIView { get } - func quickScanner(_ scanner: QuickScanner, didCaptureCode code: String, type: BarcodeType) + func quickScanner(_ scanner: QuickScanner, didCaptureCode code: String, type: CodeType) func quickScanner(_ scanner: QuickScanner, didReceiveError error: Error) func quickScannerDidSetup(_ scanner: QuickScanner) func quickScannerDidEndScanning(_ scanner: QuickScanner)