What does the "automatically adjusts font requires using a dynamic type text style" warning mean?
Solution 1:
- Open your storyboard as Source Code
- Search for key "adjustsFontForContentSizeCategory"
- Check which object has this option and uncheck Dynamic Type checkbox from interface builder.
Solution 2:
I just changed Text style to Body & Warning vanishes.
It's Just because it is dynamic type textStyle
See list of predefined supported dynamic type textStyle -
Solution 3:
I had the same problem. Even after I opened the storyboard as source and removed the "adjustsFontForContentSizeCategory" key, saved and cleaned the project it would still show.
So then I:
- Cleaned the project
- Closed Xcode
- Deleted the derived data folder contents
- Re-Opened Xcode and rebuilt
It was gone. :)
Solution 4:
It seems to have been a bug in Xcode. This is what I did to fix it:
- Change the font in the label that showed the error, to a dynamic type, as suggested
- Select check box for "Automatically Adjusts Font"
- Build and run the project (the error disappears)
- Uncheck the "Automatically Adjusts Font" box
- Change the font back to the previous setting that caused the error
- Rebuild the project
The error is still gone.