8

After updating to Xcode 13, when I add an UIButton to my Storyboard, the State Config no longer shows up as an option.

Screenshot showing missing State Config

shim
  • 9,289
  • 12
  • 69
  • 108
Mikkel Cortnum
  • 481
  • 4
  • 11

1 Answers1

15

I found out that with Xcode 13 you have to change the style of the UIButton from plain to default. The default when you insert a UIButton in your Storyboard is NOT default, but plain. Changing to default makes the State Config show back up!

Screenshot showing style selector

shim
  • 9,289
  • 12
  • 69
  • 108
Mikkel Cortnum
  • 481
  • 4
  • 11
  • 1
    Thank you! This also explains why the title "Button" would appear at run time, even though I thought I deleted the text in the storyboard. I needed to switch to Default, and then I could delete the "Button" title. – bugloaf Jul 07 '23 at 12:27
  • @bugloaf, yes it does indeed! I still don't understand why they changed the default style of the button to not be the default style – Mikkel Cortnum Jul 10 '23 at 13:24