mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Remove experimental code
This commit is contained in:
parent
da964f1eef
commit
83ecfc130b
@ -67,7 +67,9 @@ final class SetupTwoStepVerificationContentNode: ASDisplayNode, UITextFieldDeleg
|
|||||||
self.inputNode.textField.autocapitalizationType = .none
|
self.inputNode.textField.autocapitalizationType = .none
|
||||||
self.inputNode.textField.autocorrectionType = .no
|
self.inputNode.textField.autocorrectionType = .no
|
||||||
if #available(iOSApplicationExtension 12.0, iOS 12.0, *) {
|
if #available(iOSApplicationExtension 12.0, iOS 12.0, *) {
|
||||||
|
#if DEBUG
|
||||||
self.inputNode.textField.textContentType = .newPassword
|
self.inputNode.textField.textContentType = .newPassword
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
case .text:
|
case .text:
|
||||||
break
|
break
|
||||||
|
@ -1081,6 +1081,7 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega
|
|||||||
self.inputNode.textField.returnKeyType = .next
|
self.inputNode.textField.returnKeyType = .next
|
||||||
}
|
}
|
||||||
if #available(iOS 12.0, *) {
|
if #available(iOS 12.0, *) {
|
||||||
|
#if DEBUG
|
||||||
if !confirmation, let phoneNumber {
|
if !confirmation, let phoneNumber {
|
||||||
let shadowInputNode = TextFieldNode()
|
let shadowInputNode = TextFieldNode()
|
||||||
shadowInputNode.textField.font = Font.regular(17.0)
|
shadowInputNode.textField.font = Font.regular(17.0)
|
||||||
@ -1092,9 +1093,12 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega
|
|||||||
shadowInputNode.textField.textContentType = .username
|
shadowInputNode.textField.textContentType = .username
|
||||||
shadowInputNode.textField.text = phoneNumber
|
shadowInputNode.textField.text = phoneNumber
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
self.inputNode.textField.textContentType = .newPassword
|
self.inputNode.textField.textContentType = .newPassword
|
||||||
self.inputNode.textField.passwordRules = UITextInputPasswordRules(descriptor: "minlength: 8;")
|
self.inputNode.textField.passwordRules = UITextInputPasswordRules(descriptor: "minlength: 8;")
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
self.hideButtonNode.isHidden = confirmation
|
self.hideButtonNode.isHidden = confirmation
|
||||||
case .email:
|
case .email:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user