I am trying to put a Sketch image into a UIBarBuuttonItem. The image has a transparent background and the image is a camera that is blue with a white circle inside. I am sure I'm exporting the entire image. I am using a 1x, 2x, and 3x version of the image and when I set the image of a UIBarButtonItem in the storyboard, it only shows the blue part of the camera and not the white circle inside. If I put a UIImage in a ViewController and set it to the same image, the image shows up correctly. The image shows the difference. Thanks in advance]1
Asked
Active
Viewed 200 times
0
-
1The white part of your icon needs to be transparent, not white. The icon is only a mask. – rmaddy Nov 11 '16 at 04:19
-
Thanks! Please post as an answer. – Dan Levy Nov 11 '16 at 04:36
1 Answers
0
In your image in xcasset, try change it's render to Original image
in attribute inspector, maybe the issue is the tint color

Tj3n
- 9,837
- 2
- 24
- 35