iosswiftxcodevisual-glitch

Xcode Tab Bar Text Glitch


Recently, I have been trying to add a tab bar to an existing project. However, no matter what I do, the text is being cut off. I am simply trying to drag a Tab Bar Controller into the storyboard and setting it as the initial controller.

This seems to only be an issue in this project, as doing the exact same thing in a test project works fine.

Glitched tab bar

enter image description here

Glitched tab bar setup in storyboard

enter image description here

Normal tab bar in test project

enter image description here

Normal tab bar setup in storyboard

enter image description here

I am running Xcode v10.3, and the project is already on the App Store. There is no code attached to the VCs, and as far as I am aware, this should not happen.

What are some possible causes or fixes for this?


Solution

  • Turns out a cocoapod, AMXFontAutoScale, was to blame. I guess it scales the text of tab bars also.