I have an image that I want to add to my Xcode project to use as the tab bar item but I can only use the image as a .png file if I use anything else it automatically adds a white background to it. I want it to continue to have no background. How do I add the image to the assets.xcassets?
Add .png file to Xcode
I usually import the png in the project (dragging from Finder inside the file list on the left), and add to project.
Then I select XCAssets and drag this image into XCAssets. That's done.
I can even remove the initial file I hade copied in project files' list.
I got it to work it something was wrong with the way I was exporting the image.