AttributedLabel
AttributedLabel copied to clipboard
Are there concrete measurements about performance of sizeThatFits?
I'm wondering what that performance graph in the project README is showing? Is it sizeThatFits performance? How is that measured?
Also if its not sizeThatFits, is there any data you have on the performance of sizeThatFits?
Hi @sm11963
It is not sizeThatFits
performance. It is the performance graph on iOS 8 when it used intrinsicContentSize on UICollectionViewCell
.
First, I made Date
variable after dequeueReusableCell
. Next, insert NSAttributedString
into Label's attributedText
of the Cell. Finally, I measured the difference of time interval from the first date if the layoutSubviews
of the Cell.
Also, I do not have any data the performance of sizeThatFits
. You can try it easily.