Various improvements

This commit is contained in:
Ilya Laktyushin 2023-10-09 18:13:18 +04:00
parent 5b58ad5018
commit 56aff0306e
7 changed files with 100 additions and 23 deletions

View file

@ -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 ?? ""