0

I have an app that has a UITabBarController with four view controllers embedded.

I've created icons for both normal and selected states and set them via the interface builder. The sizes of the individual icons vary slightly according to the new design guidelines. Also the icons are PDFs. I initially set it's Render As property to Template Image.

The titles of the tab bar icons show up but not the icons.

enter image description here

But they do show up in the interface builder though.

enter image description here

Then I set the Render As to both Original and Default but neither worked.

I'm using Xcode 10.1. What am I missing here?

Isuru
  • 30,617
  • 60
  • 187
  • 303
  • Something went wrong with your PDF Size please try to follow this step https://useyourloaf.com/blog/creating-scaled-images-with-pdf-vectors/ – PinkeshGjr Jan 11 '19 at 11:45
  • 2
    Your pdf image size seems to be small.. Please try to use proper format size for images – Dimple Jan 11 '19 at 11:51

1 Answers1

2

It seems problem with image you are using. try setting different insets to image and tab bar icon will appear.

i have set some inset for icon and icon appeared in simulator.so you will need proper icon image for asset or would required proper inset for icons.

enter image description here

Dhaval Bhimani
  • 980
  • 1
  • 13
  • 24