File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -286,12 +286,14 @@ open class TweePlaceholderTextField: UITextField {
286286 }
287287
288288 private func enablePlaceholderHeightConstraint( ) {
289+ // guard placeholderLayoutGuide.owningView != nil else { return }
289290 placeholderGuideHeightConstraint? . isActive = false
290291 placeholderGuideHeightConstraint = placeholderLayoutGuide. heightAnchor. constraint ( equalTo: heightAnchor)
291292 placeholderGuideHeightConstraint? . isActive = true
292293 }
293294
294295 private func disablePlaceholderHeightConstraint( ) {
296+ guard placeholderLayoutGuide. owningView != nil else { return }
295297 placeholderGuideHeightConstraint? . isActive = false
296298 placeholderGuideHeightConstraint = placeholderLayoutGuide. heightAnchor. constraint ( equalToConstant: 0 )
297299 placeholderGuideHeightConstraint? . isActive = true
You can’t perform that action at this time.
0 commit comments