We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb223d4 commit 01b7e28Copy full SHA for 01b7e28
Sources/ResponsiveTextField/ResponsiveTextField.swift
@@ -157,12 +157,16 @@ extension ResponsiveTextField: UIViewRepresentable {
157
}
158
159
public func textFieldDidBeginEditing(_ textField: UITextField) {
160
+ guard !isEditing else { return }
161
+
162
// Scheduled on the next runloop to avoid runtime warnings
163
// about changing state during a view update.
164
RunLoop.main.schedule { self.isEditing = true }
165
166
167
public func textFieldDidEndEditing(_ textField: UITextField) {
168
+ guard isEditing else { return }
169
170
171
172
RunLoop.main.schedule { self.isEditing = false }
0 commit comments