The dilemma of choosing between UILabel and UITextView starts when you want to display text in your Apple iOS, iPadOS or macOS Catalyst App.
I have even gone through this process of choosing UILabel or UITextView to display text on my app.
So I have made a small numbered list to help you out to choose the right option…
Choose UILable to display text:
- If the text word count is small in number
- If Top Aligning text to the top border is not the requirement
- UILable is not tappable or interactive or selectable to the user’s input
- if you want to automatically adjust the font size and fit text to the UILabel bounding box layout
Here is Sample Code for UILabel:(more…)