KyoheiG3 / AttributedLabel

Easy to use, fast, and higher performance than UILabel.
MIT License
524 stars 38 forks source link

Support autolayout intrinsicContentSize #12

Closed fgengine closed 7 years ago

KyoheiG3 commented 7 years ago

Hi @fgengine It seems good but I guess sizeThatFits is not fast. I don't want to sacrifice layout performance.

fgengine commented 7 years ago

Hi @KyoheiG3 Perhaps the performance is not the biggest but the best to have support for automatic calculation of the size of than not to have, but is proud that works fast.

KyoheiG3 commented 7 years ago

I think so. I want to use sizeThatFit only when necessary. For example, to use some flags.

KyoheiG3 commented 7 years ago

It was supported. Please use var intrinsicAutoLayout: Bool and check README about the flag.