if my textfield takes 11 characters then i need to remove first character and then pass it to jason perameter, so i tried like below
var dropFirst: String?
if emailPhoneTextField.text?.count == 11{
dropFirst = emailPhoneTextField.text?.dropFirst()
emailPhoneTextField.text = dropFirst
}
then o/p: then error, how to fix
Cannot assign value of type 'String.SubSequence?' (aka 'Optional') to type 'String?'