Skip to content

Commit 76aff30

Browse files
committed
Don't guard this as there could be a race condition
1 parent a6a29ca commit 76aff30

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/ResponsiveTextField/ResponsiveTextField.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,10 @@ extension ResponsiveTextField: UIViewRepresentable {
167167
}
168168

169169
public func textFieldDidBeginEditing(_ textField: UITextField) {
170-
guard !isEditing else { return }
171170
parent.skippingViewUpdates { self.isEditing = true }
172171
}
173172

174173
public func textFieldDidEndEditing(_ textField: UITextField) {
175-
guard isEditing else { return }
176174
parent.skippingViewUpdates { self.isEditing = false }
177175
}
178176

0 commit comments

Comments
 (0)