mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Remove experimental code
This commit is contained in:
parent
da964f1eef
commit
83ecfc130b
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue