Warm tip: This article is reproduced from serverfault.com, please click

What does the "automatically adjusts font requires using a dynamic type text style" warning mean?

发布于 2017-05-03 17:28:26

I am getting the following warning:

"automatically adjusts font requires using a dynamic type text style"

Screenshot added

Which I can not get rid of the warning is on main.storyboard.

I have checked every UILabel in the Identity Inspector to make sure the "Automatically Adjusts Font" is unchecked.

Questioner
K. Law
Viewed
0
6,799 2018-02-14 07:34:04

It seems to have been a bug in Xcode. This is what I did to fix it:

  1. Change the font in the label that showed the error, to a dynamic type, as suggested
  2. Select check box for "Automatically Adjusts Font"
  3. Build and run the project (the error disappears)
  4. Uncheck the "Automatically Adjusts Font" box
  5. Change the font back to the previous setting that caused the error
  6. Rebuild the project

The error is still gone.