Skip to content

Commit

Permalink
fix method name (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
denizztret authored Nov 12, 2020
1 parent 57ef057 commit 0ab260e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example/SoraUI/PincodeView/PincodeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extension PincodeViewController: PinViewDelegate {
print("Accessory button pressed!")
}

func didFailConfirmation(in: PinView) {
func didFailConfirmation(pinView: PinView) {
print("Wrong input error!")
}
}
4 changes: 2 additions & 2 deletions SoraUI/Classes/PinView/PinView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public protocol PinViewDelegate: class {
* - parameters:
* - pinView: current input pin view
*/
func didFailConfirmation(in pinView: PinView)
func didFailConfirmation(pinView: PinView)
}

public protocol PinViewAccessibilitySupportProtocol: class {
Expand Down Expand Up @@ -431,7 +431,7 @@ open class PinView: UIView {
}

private func notifyDelegateOnWrongInputError() {
self.delegate?.didFailConfirmation(in: self)
self.delegate?.didFailConfirmation(pinView: self)
}
}

Expand Down

0 comments on commit 0ab260e

Please sign in to comment.