Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
kishanraja committed Nov 18, 2020
1 parent f03f103 commit 2b52de9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public struct FloatingLabelTextField: View {
}
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
if let currentResponder = UIResponder.currentFirstResponder, let currentTextField = currentResponder.globalView as? UITextField{
arrTextFieldEditActions = notifier.arrTextFieldEditActions
arrTextFieldEditActions = self.notifier.arrTextFieldEditActions
self.isSelected = self.notifier.isSecureTextEntry
currentTextField.addAction(for: .editingDidEnd) {
self.isSelected = false
Expand All @@ -96,7 +96,7 @@ public struct FloatingLabelTextField: View {
self.validtionChecker = self.currentError.condition
self.editingChanged(isChanged)
self.isShowError = self.notifier.isRequiredField
arrTextFieldEditActions = notifier.arrTextFieldEditActions
arrTextFieldEditActions = self.notifier.arrTextFieldEditActions
}, onCommit: {
self.isShowError = self.notifier.isRequiredField
self.validtionChecker = self.currentError.condition
Expand Down

0 comments on commit 2b52de9

Please sign in to comment.