PassCodeViewController fixed

This commit is contained in:
Alexey Gerasimov 2017-04-26 20:00:44 +03:00
parent 1568658157
commit da4c6b7a9d
1 changed files with 3 additions and 3 deletions

View File

@ -159,19 +159,19 @@ open class BasePassCodeViewController: UIViewController {
}
// override to change Images
func imageFor(type: PinImageType) -> UIImage {
open func imageFor(type: PinImageType) -> UIImage {
assertionFailure("You should override this method: imageFor(type: PinImageType)")
return UIImage()
}
// override to change error text
func errorDescription(for error: PassCodeError) -> String {
open func errorDescription(for error: PassCodeError) -> String {
assertionFailure("You should override this method: errorDescription(for error: PassCodeError)")
return ""
}
// override to change action title text
func actionTitle(for passCodeControllerState: PassCodeControllerState) -> String {
open func actionTitle(for passCodeControllerState: PassCodeControllerState) -> String {
assertionFailure("You should override this method: actionTitle(for passCodeControllerState: PassCodeControllerState)")
return ""
}