Home > database >  Swift UIButton edge insets
Swift UIButton edge insets

Time:11-22

I am trying to make a square button that is on the smaller side (30x30), and I want to include the amount of participants there are as the text, for some reason the button is cutting the title off on the left and ride sides (see picture) forcing me to either have a bigger button (not ideal) or have really small text (also not ideal). Is there a way to stop it from cutting off?

enter image description here

CodePudding user response:

If you're trying to display one character in that 30*30 button, make the button size large, check screenshots for reference:

enter image description here

enter image description here

CodePudding user response:

Change Button Style Plain into Default.

enter image description here

  • Related