Skip to content

Commit f621094

Browse files
committed
renamed RCCameraViewControllerDelegate method parameter
1 parent 2c0c77d commit f621094

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class ViewController: UIViewController, RCCameraViewControllerDelegate {
7171
present(cameraController, animated: true)
7272
}
7373

74-
func cameraViewController(didFinishPickingScanning message: String) {
74+
func cameraViewController(didFinishScanning message: String) {
7575
messageLabel.text = message
7676
}
7777
}

Sources/Public/RCCameraViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ extension RCCameraViewController: AVCaptureVideoDataOutputSampleBufferDelegate {
204204
coder.imageDecoder.bytesPerRow = bytesPerRow
205205
if let message = try? coder.decode(buffer: lumaCopy.assumingMemoryBound(to: UInt8.self)) {
206206
captureSession.stopRunning()
207-
delegate?.cameraViewController(didFinishPickingScanning: message)
207+
delegate?.cameraViewController(didFinishScanning: message)
208208
dismiss(animated: true)
209209
}
210210
lumaCopy.deallocate()

Sources/Public/RCCameraViewControllerDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Foundation
2424

2525
public protocol RCCameraViewControllerDelegate: class {
2626

27-
func cameraViewController(didFinishPickingScanning message: String)
27+
func cameraViewController(didFinishScanning message: String)
2828
func cameraViewControllerDidCancel()
2929

3030
}

0 commit comments

Comments
 (0)