how to remove first character from textfield value in swift – Ios swift
If my textfield takes 11 characters and I need to remove first character and then pass it as a parameter. I tried this code: var dropFirst: String? if emailPhoneTextField.text?.count == 11{ dropFirst = emailPhoneTextField.text?.dropFirst() emailPhoneTextField.text = dropFirst } I receive…