I want to show more button at the end of the text or below if there isn\'t enough space. I don\'t understand how Apple developers did this?
Please answer in swift. After cli
Here's a great CocoaPod for the functionality you're looking for.
https://github.com/ilyapuchka/ReadMoreTextView
This will allow you to set a maximum number of lines and customise the text append to the end of the trimmed text. You can change the font and color since it is an NSAttributedString.