Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-07-09 02:21:24 +03:00
parent f80b2641c3
commit 3ac8fddce5
6 changed files with 3299 additions and 3269 deletions

View File

@@ -99,6 +99,14 @@ final class PasscodeEntryControllerNode: ASDisplayNode {
}
}
}
self.keyboardNode.backspace = { [weak self] in
if let strongSelf = self {
strongSelf.inputFieldNode.delete()
if let gradientNode = strongSelf.backgroundCustomNode as? GradientBackgroundNode {
gradientNode.animateEvent(transition: .animated(duration: 0.55, curve: .spring), backwards: true)
}
}
}
self.inputFieldNode.complete = { [weak self] passcode in
guard let strongSelf = self else {
return