I have long String variable having urdu text of almost 60 lines written in a *.swift file in xcode. I have checked it by printing in console, it was in correct format. But, when I set label's text property to 60 line string, it breaks the text characterwise. But when we break 60 line text to 30 lines it renders correctly on UILabel.
How to reproduce
1- Create a label inside self sizing Table View cell so that we can see complete text by scrolling.
2- Copy variable named longText.
3- Set label's text to longText variable, issue will appear
4- Text breaked characterwise.
YOU CAN CHECK THE TEXT RENDERED IN UILABEL BY MATCHING WITH TEXT WRITTEN AGAINST longText VARIABLE. ISSUE IS, TEXT IS NOT MATCHING AND BREAKED CHARACTERWISE
Large String Variable
This is 60 line long text rendered screenshot
and this is same text but first 30 lines of text
Selecting any option will automatically load the page