Reputation: 358
My question is related to solving a problem and also to improve my understanding of swift.
I have a UILabel and a TextView. I have the same size font in both. However, in the TextView I am using attributed strings. The fonts appear the same but the line spacing is greater in the label. My problem is I cannot find a way to change the line spacing in the Label other than switching to Attributed String for the Label or for that matter even determining what the present spacing is.
Q1: Is there no other way to control the label spacing other than Attributed Strings?
Q2: Because of issues like this, should I be thinking that Attributed Strings might be a "best practice" regardless -- to give more control?
Upvotes: 0
Views: 814
Reputation: 3079
You can set linespacing in Label Attribute inspector. See screenshot.
Upvotes: 1