File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ - (void)showErrorLabelAnimated:(BOOL)animated
530530 [self updateErrorLabelText ];
531531
532532 if (animated && !self.errorIsAnimating ) {
533- [self layoutIfNeeded ];
533+ [self setNeedsLayout ];
534534 self.errorIsAnimating = YES ;
535535 self.errorLabelHeightConstraint .active = NO ;
536536 self.errorLabelTopConstraint .constant = [self topPaddingForErrorLabelHidden: NO ];
@@ -656,7 +656,7 @@ - (CGRect)placeholderRectForBounds:(CGRect)bounds
656656- (CGRect)clearButtonRectForBounds : (CGRect)bounds
657657{
658658 CGRect clearButtonRect = [super clearButtonRectForBounds: bounds];
659- clearButtonRect.origin .y = CGRectGetMidY (self. textRect ) - (clearButtonRect.size .height / 2 .0f );
659+ clearButtonRect.origin .y = CGRectGetMidY (_textRect ) - (clearButtonRect.size .height / 2 .0f );
660660
661661 return clearButtonRect;
662662}
You can’t perform that action at this time.
0 commit comments