I have used this delegate method but it's not returning last character which I entered.
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool
Eg. Current Text field string is "123" and when I enter "4", so textfield string is "1234" but above delegate method return only "123", now again entered "5" then above method return "1234" but I'm expecting "12345"