1

screenshot

I am migrating this to Xcode 9.

The button is clearly not going to be clipped, why is it giving me this warning?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • 1
    Thank you @LeoDabus. That makes sense, but I had already tried recreating my constraints like 5 times. – Ken Mueller Oct 01 '17 at 23:37
  • Is this possibly the new localization warnings in Xcode 9? https://stackoverflow.com/questions/45039846/xcode-9-localization-issue-warning-storyboard – toddg Oct 01 '17 at 23:39
  • Please check https://stackoverflow.com/questions/45122691/xcode-9-fixed-width-constraints-may-cause-clipping-and-other-localization-wa – Vini App Oct 02 '17 at 01:33

1 Answers1

0

Buttons with text and a fixed width can easily be clipped.

Whenever you decide to modify the text through code or decide to use Dynamic Type for the button's text, this can be a valid issue.

Generally speaking, it's a bad idea to set a fixed width to something that can vary.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223