Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 3 additional delegates set, more below #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lsamaria
Copy link
Contributor

-Line 114 added: self.delegate = self // sets itself as the UITextFieldDelegate

-Line 121 added: addTarget(self, action: #selector(textFieldTapped), for: .editingChanged) // detects when textField is tapped set in Lines 451 - 457

-Line 190 added: (delegate as? FPNTextFieldDelegate)?.detectWhenFlagTapped()

-Line 208 added: (delegate as? FPNTextFieldDelegate)?.detectWhenDoneButtonTapped()

-Lines 451 - 457 added for the target method in lines 121
extension FPNTextField: UITextFieldDelegate {

@objc private func textFieldTapped() {

    (delegate as? FPNTextFieldDelegate)?.detectWhenTextFieldTapped()
}

}

-Line 114 added:  self.delegate = self // sets itself as the UITextFieldDelegate

-Line 121 added:  addTarget(self, action: #selector(textFieldTapped), for: .editingChanged) // detects when textField is tapped set in Lines 451 - 457

-Line 190 added: (delegate as? FPNTextFieldDelegate)?.detectWhenFlagTapped()

-Line 208 added: (delegate as? FPNTextFieldDelegate)?.detectWhenDoneButtonTapped()

-Lines 451 - 457 added for the target method in lines 121
extension FPNTextField: UITextFieldDelegate {

    @objc private func textFieldTapped() {

        (delegate as? FPNTextFieldDelegate)?.detectWhenTextFieldTapped()
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant