MojtabaHs / iPhoneNumberField

Elegant SwiftUI phone number textField.
MIT License
542 stars 90 forks source link

.onBeginEditing call when textFieldDidEndEditing #114

Open DamienMartin opened 1 month ago

DamienMartin commented 1 month ago

Wrong callback is called :

public func textFieldDidEndEditing(_ textField: UITextField) {
    DispatchQueue.main.async { [weak self] in
        guard let self else { return }
        isFirstResponder.wrappedValue = false
        onBeginEditing(textField as! PhoneNumberTextField)
    }
}
github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.