Search code examples
iosswifticonsuitabbaritem

how to add colored icon in ios swift?


I am trying to add an icon which is multicolored and when I added the icon as per in the tab bar, it is showing a single color blue, the actual colors of the icon are not visible?

how should I add the colored icon in the tab bar?


Solution

  • In assets folder in x-code select your image and in attribute inspector change value of Render As to "Original Image" instead of "Default".