clear entered pin
This commit is contained in:
parent
7de7fe9896
commit
d807b41efd
|
@ -63,6 +63,7 @@ extension CreateNewWalletCoordinator: PinVCDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func showConfirmationPinView(initialPin: String) {
|
private func showConfirmationPinView(initialPin: String) {
|
||||||
|
self.isInitialPin = false
|
||||||
let vc = self.viewFactory.getPinView()
|
let vc = self.viewFactory.getPinView()
|
||||||
vc.delegate = self
|
vc.delegate = self
|
||||||
vc.localizer = self.localizer
|
vc.localizer = self.localizer
|
||||||
|
|
|
@ -41,6 +41,7 @@ class PinVC: UIViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setup() {
|
private func setup() {
|
||||||
|
self.pinCode = ""
|
||||||
self.pinDotView.totalDotCount = Constants.pinCodeLength
|
self.pinDotView.totalDotCount = Constants.pinCodeLength
|
||||||
self.pinDotView.inputDotCount = 0
|
self.pinDotView.inputDotCount = 0
|
||||||
self.pinDotView.fillColor = .black
|
self.pinDotView.fillColor = .black
|
||||||
|
@ -104,7 +105,10 @@ extension PinVC : UIKeyInput {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
self.pinDotView.shakeAnimationWithCompletion {}
|
self.pinDotView.shakeAnimationWithCompletion {
|
||||||
|
self.pinCode = ""
|
||||||
|
self.pinDotView.inputDotCount = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func deleteBackward() {
|
public func deleteBackward() {
|
||||||
|
|
Loading…
Reference in New Issue