Skip to content

Commit

Permalink
Fix delegate retain
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey committed Jan 10, 2018
1 parent 1a0aeb3 commit e765b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/TextFieldValidatorDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

open class TextFieldValidatorDelegate: NSObject, UITextFieldDelegate {
var finalDelegate: UITextFieldDelegate?
weak var finalDelegate: UITextFieldDelegate?

open func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
return finalDelegate?.textFieldShouldBeginEditing?(textField) ?? true
Expand Down

0 comments on commit e765b24

Please sign in to comment.