22

After updating to Xcode 13, I face a strange issue, I make a button without title in the storyboard, but it appears with "Button" title in build.

Here's button settings

And here's what it looks like in storyboard

storyboard button

But in build it looks like this

Button with "Button" title

Tamás Sengel
  • 51,886
  • 29
  • 155
  • 197
Alex Metelkin
  • 1,082
  • 5
  • 13

3 Answers3

63

I found a solution - need to choose Default style.

enter image description here

Alex Metelkin
  • 1,082
  • 5
  • 13
  • Thank you so much for the solution. Really this is one of the most bizarre bugs ever in Xcode, and that's saying something. Thanks. – Fattie May 27 '22 at 12:29
1

If you need to use icon instead of text. Not only button style Default required. You have to check Tint color also because the default is blue.

Button tint

LordGift
  • 41
  • 1
  • 7
-1

If you want to stick to using a Plain button, try entering a thin space (U+2009) character as the title, which won't consume much space and solves the issue. (Thanks to @El Tomato for suggesting white space characters)

Here it is for easier copy-pasting:

Tamás Sengel
  • 51,886
  • 29
  • 155
  • 197