mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
5b58ad5018
commit
56aff0306e
7 changed files with 100 additions and 23 deletions
|
|
@ -93,6 +93,15 @@ public final class PhoneInputNode: ASDisplayNode, UITextFieldDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public var codeNumberAndFullNumber: (String, String, String) {
|
||||
let full = self.number
|
||||
return (
|
||||
cleanPhoneNumber(self.countryCodeField.textField.text ?? ""),
|
||||
cleanPhoneNumber(self.numberField.textField.text ?? ""),
|
||||
full
|
||||
)
|
||||
}
|
||||
|
||||
public var countryCodeText: String {
|
||||
get {
|
||||
return self.countryCodeField.textField.text ?? ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue