no message

This commit is contained in:
Peter
2017-02-19 23:21:03 +03:00
parent 32efb5962d
commit a0ccb729be
51 changed files with 3898 additions and 1101 deletions

View File

@@ -2,7 +2,7 @@ import Foundation
import AsyncDisplayKit
import Display
final class AuthorizationSequencePasswordEntryControllerNode: ASDisplayNode {
final class AuthorizationSequencePasswordEntryControllerNode: ASDisplayNode, UITextFieldDelegate {
private let navigationBackgroundNode: ASDisplayNode
private let stripeNode: ASDisplayNode
private let titleNode: ASTextNode
@@ -67,6 +67,8 @@ final class AuthorizationSequencePasswordEntryControllerNode: ASDisplayNode {
self.backgroundColor = UIColor.white
self.codeField.textField.delegate = self
self.addSubnode(self.navigationBackgroundNode)
self.addSubnode(self.stripeNode)
self.addSubnode(self.codeSeparatorNode)
@@ -171,4 +173,9 @@ final class AuthorizationSequencePasswordEntryControllerNode: ASDisplayNode {
@objc func passwordFieldTextChanged(_ textField: UITextField) {
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
self.loginWithCode?(self.currentPassword)
return false
}
}