How to get the correct width of a UILabel after the text has been set? September 8, 2023 by Tarik Try myUILabel.intrinsicContentSize(). Make sure you set your font first, of course.