I have a label with a rectangular border. I wish to add space between the label's text and the label's border.
I tried following the steps described here: https://stackoverflow.com/a/40385630/9735046
myLabel.frame.size.width = myLabel.intrinsicContentSize.width + 10
myLabel.frame.size.height = myLabel.intrinsicContentSize.height + 10
myLabel.textAlignment = .center
But it did not add space between my label's text and border.
How would I add space?