clear entered pin

This commit is contained in:
loj 2019-01-11 16:56:38 +01:00
parent 7de7fe9896
commit d807b41efd
2 changed files with 6 additions and 1 deletions

View File

@ -63,6 +63,7 @@ extension CreateNewWalletCoordinator: PinVCDelegate {
}
private func showConfirmationPinView(initialPin: String) {
self.isInitialPin = false
let vc = self.viewFactory.getPinView()
vc.delegate = self
vc.localizer = self.localizer

View File

@ -41,6 +41,7 @@ class PinVC: UIViewController {
}
private func setup() {
self.pinCode = ""
self.pinDotView.totalDotCount = Constants.pinCodeLength
self.pinDotView.inputDotCount = 0
self.pinDotView.fillColor = .black
@ -104,7 +105,10 @@ extension PinVC : UIKeyInput {
return
}
self.pinDotView.shakeAnimationWithCompletion {}
self.pinDotView.shakeAnimationWithCompletion {
self.pinCode = ""
self.pinDotView.inputDotCount = 0
}
}
public func deleteBackward() {