Multi-line UILabel and UITextView using storyboard, auto layout and swift
I am trying to add a multi-line UI shortcut as header followed by UITextView as content body.
I added UILabel and UITextView like this: -
The label specifies a line count of 0, character wrapping, and standard left, right, bottom, and top constraints. I've also set a minimum height limit, but that doesn't change anything. The UITextView below it has an upper limit for the label and left, right and bottom constraints for the view / layout guide.
The actual output is as follows: -
There should be 3 lines for this label, but it only shows 2 lines /
This label should have 2 lines and the text as "tricyclic antidepressants", but the last line is not displayed.
Is there something wrong with my preferences / restrictions?
thank
+3
source to share