Correct methods visibility

This commit is contained in:
Vlad Suhomlinov 2021-04-24 10:44:02 +03:00
parent 4a68dec5d3
commit a5793678df
2 changed files with 3 additions and 5 deletions

View File

@ -40,7 +40,7 @@ open class CardReader: BaseReader<Card> {
private let videoDataOutput = AVCaptureVideoDataOutput()
init(factory: CardFactory, onUpdateRectOfInterest: (() -> Void)?) {
public init(factory: CardFactory, onUpdateRectOfInterest: (() -> Void)?) {
self.factory = factory
super.init(onUpdateRectOfInterest: onUpdateRectOfInterest)

View File

@ -26,9 +26,7 @@ public struct Card {
let number: String
}
open class CardFactory {
public protocol CardFactory {
func create(_ values: [String]) -> Card? {
nil
}
func create(_ values: [String]) -> Card?
}