Attempt at fixing [CALayer animationForKey] crashes.

This commit is contained in:
Stefan Ceriu
2022-05-20 14:06:58 +03:00
committed by Stefan Ceriu
parent 8ce6a1c1c6
commit 7dbe5b17e9
2 changed files with 2 additions and 1 deletions
@@ -538,7 +538,7 @@
// Select the right text view for measurement
UITextView *selectedTextView = (removeVerticalInset ? measurementTextViewWithoutInset : measurementTextView);
selectedTextView.frame = CGRectMake(0, 0, _maxTextViewWidth, MAXFLOAT);
selectedTextView.frame = CGRectMake(0, 0, _maxTextViewWidth, 0);
selectedTextView.attributedText = attributedText;
CGSize size = [selectedTextView sizeThatFits:selectedTextView.frame.size];