Commit d5d5e751 by Daniel Dahan

updated TextFieldDelegate parameters

parent 8caf7fb1
...@@ -40,27 +40,27 @@ public enum TextFieldPlaceholderAnimation: Int { ...@@ -40,27 +40,27 @@ public enum TextFieldPlaceholderAnimation: Int {
public protocol TextFieldDelegate: UITextFieldDelegate { public protocol TextFieldDelegate: UITextFieldDelegate {
/** /**
A delegation method that is executed when the textField changed. A delegation method that is executed when the textField changed.
- Parameter textField: A UITextField. - Parameter textField: A TextField.
- Parameter didChange text: An optional String. - Parameter didChange text: An optional String.
*/ */
@objc @objc
optional func textField(textField: UITextField, didChange text: String?) optional func textField(textField: TextField, didChange text: String?)
/** /**
A delegation method that is executed when the textField will clear. A delegation method that is executed when the textField will clear.
- Parameter textField: A UITextField. - Parameter textField: A TextField.
- Parameter willClear text: An optional String. - Parameter willClear text: An optional String.
*/ */
@objc @objc
optional func textField(textField: UITextField, willClear text: String?) optional func textField(textField: TextField, willClear text: String?)
/** /**
A delegation method that is executed when the textField is cleared. A delegation method that is executed when the textField is cleared.
- Parameter textField: A UITextField. - Parameter textField: A TextField.
- Parameter didClear text: An optional String. - Parameter didClear text: An optional String.
*/ */
@objc @objc
optional func textField(textField: UITextField, didClear text: String?) optional func textField(textField: TextField, didClear text: String?)
} }
open class TextField: UITextField { open class TextField: UITextField {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment