Remove experimental code

This commit is contained in:
Ali 2023-03-03 13:27:05 +04:00
parent da964f1eef
commit 83ecfc130b
2 changed files with 6 additions and 0 deletions

View File

@ -67,7 +67,9 @@ final class SetupTwoStepVerificationContentNode: ASDisplayNode, UITextFieldDeleg
self.inputNode.textField.autocapitalizationType = .none
self.inputNode.textField.autocorrectionType = .no
if #available(iOSApplicationExtension 12.0, iOS 12.0, *) {
#if DEBUG
self.inputNode.textField.textContentType = .newPassword
#endif
}
case .text:
break

View File

@ -1081,6 +1081,7 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega
self.inputNode.textField.returnKeyType = .next
}
if #available(iOS 12.0, *) {
#if DEBUG
if !confirmation, let phoneNumber {
let shadowInputNode = TextFieldNode()
shadowInputNode.textField.font = Font.regular(17.0)
@ -1092,9 +1093,12 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega
shadowInputNode.textField.textContentType = .username
shadowInputNode.textField.text = phoneNumber
}
#endif
#if DEBUG
self.inputNode.textField.textContentType = .newPassword
self.inputNode.textField.passwordRules = UITextInputPasswordRules(descriptor: "minlength: 8;")
#endif
}
self.hideButtonNode.isHidden = confirmation
case .email: