(I use https://www.charactercountonline.com to count my string, then my string is 2253 characters) I want to set UILabel with long string, but my app keep getting freeze without error log in xcode.
I have tried setting up UILabel with shorter string, and it succeeded! I have tried using DispatchQueue
while setting up UILabel, but it keep freezing too without showing error log.
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
contentLabel.text = text }
How can i fix it? It makes me stuck for a few days.
Edit :
I've tried to hardcode value of string.
this is exactly the line where problem occured