iosswiftuitabbaritem

Image is not showing up for tab bar item


I uploaded an image to assets folder and assigned the image to 1x, 2x and 3x. selected the table view controller of the respective tab bar item -> selected the Attributes -> assigned the image to the image field in the Bar Items section.

After running the application a Blue Square box is showing up on selection and Grayed out square box is showing up on selection of a different bar item.

Where am I going wrong?


Solution

  • Go to Assets folder. Select your tab image. On the right side under Attributes you will find "Render As". Select "Original Image".