You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having multiline buttons, the text of the titleLabel grows outside of the button. I solved it by adding a few auto layout constraints (using a custom extension but you'll get the idea):
radioButton.titleLabel!.translatesAutoresizingMaskIntoConstraints = false;
radioButton.imageView!.translatesAutoresizingMaskIntoConstraints = false;
radioButton.constrain(soThat: .height, of: radioButton, is: .greaterThanOrEqual, to: .height, of: radioButton.titleLabel);
radioButton.constrain(soThat: .trailing, of: radioButton.titleLabel!, is: .equal, to: .trailing, of: radioButton);
radioButton.constrain(soThat: .width, of: radioButton.imageView!, is: .equal, to: radioButton.iconSize);
The text was updated successfully, but these errors were encountered:
Or you can put all buttons in a Stackview, select Word Wrap on the Line Break each button's option and give Stackview specific width, at least that worked for me.
When having multiline buttons, the text of the titleLabel grows outside of the button. I solved it by adding a few auto layout constraints (using a custom extension but you'll get the idea):
The text was updated successfully, but these errors were encountered: