Skip to content

Commit 2b52de9

Browse files
committed
update code
1 parent f03f103 commit 2b52de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FloatingLabelTextFieldSwiftUI/FloatingLabelTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public struct FloatingLabelTextField: View {
7676
}
7777
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
7878
if let currentResponder = UIResponder.currentFirstResponder, let currentTextField = currentResponder.globalView as? UITextField{
79-
arrTextFieldEditActions = notifier.arrTextFieldEditActions
79+
arrTextFieldEditActions = self.notifier.arrTextFieldEditActions
8080
self.isSelected = self.notifier.isSecureTextEntry
8181
currentTextField.addAction(for: .editingDidEnd) {
8282
self.isSelected = false
@@ -96,7 +96,7 @@ public struct FloatingLabelTextField: View {
9696
self.validtionChecker = self.currentError.condition
9797
self.editingChanged(isChanged)
9898
self.isShowError = self.notifier.isRequiredField
99-
arrTextFieldEditActions = notifier.arrTextFieldEditActions
99+
arrTextFieldEditActions = self.notifier.arrTextFieldEditActions
100100
}, onCommit: {
101101
self.isShowError = self.notifier.isRequiredField
102102
self.validtionChecker = self.currentError.condition

0 commit comments

Comments
 (0)