SyntaxFix
Write A Post
Hire A Developer
Questions
Use intrinsicContentSize to find the text height and width.
yourLabel.intrinsicContentSize.width
This will work even you have custom spacing between your string like "T E X T"