Skyscanner / SkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Apache License 2.0
4.09k stars 540 forks source link

Add target to the SkyFloatingLabelTextField not working #304

Closed Hamza-Almass closed 4 years ago

Hamza-Almass commented 4 years ago

Hi ,

i have an issue about when, i add target value changed to the SkyFloatingLabelTextField it's not working? how can i add it.

thank you

david-gorski commented 4 years ago

From the README: "To get notified of different events happening on the textfield - such as the text changing, editing starting or ending - just set the func addTarget(_ target: Any?, action: Selector, for controlEvents: UIControl.Event) with the .editingChanged. also can set the delegate property to a class implementing the standard UITextFieldDelegate protocol"