psharanda / Atributika

Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
MIT License
1.45k stars 155 forks source link

How to get the number of lines after the label setting text? #149

Closed AnswerX closed 1 year ago

psharanda commented 1 year ago

There is no such capability in Atributika, but I believe you can use NSLayoutManager.enumerateLineFragments to count them