# iOS App icon shows with white border around it

**URL:** <https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023>\
**Category:** General JUCE discussion\
**Created:** [December 6, 2022, 4:50am UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023 "2022-12-06T04:50:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [December 6, 2022, 4:50am UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023/1 "2022-12-06T04:50:09Z")

</div>

I can’t figure out why my icon is showing with a white border around it.

I created a full bleed 1024px icon (along with a 128px version). I attach them in my CMakeList file in the juce\_add\_plugin() call with ICON\_LARGE and ICON\_SMALL. After generating the Xcode project with CLion/CMake, I can see both sizes in the Images.xcassetts, and _some_ of them are full bleed, and some have the border around them.

In Xcode…

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/b/bff436852d1b965e2c8faf9a2a8702db5b384ed3.png)

And in the iPad simulator…

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/1/1afbd33ebd69e2808008a1a6a043a8b35349d5f1.jpeg)

Any ideas?

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [December 6, 2022, 3:18pm UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023/2 "2022-12-06T15:18:53Z")

</div>

@reuk I’m guessing this has something to do with the way `juce_add_plugin()` creates the icon set?

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [December 6, 2022, 5:16pm UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023/3 "2022-12-06T17:16:45Z")

</div>

Following up here…If I don’t use ICON\_SMALL and only attach a 1024px image to ICON\_BIG, there’s no incorrect border and all of the icons in the set look proper in Xcode. One small issue though, Xcode shows a warning sign saying, “The app icon set AppIcon has an unassigned child”. Not sure what that means, but all the icons look right.

So, there’s some bug in the way Juce generates the icon set when using ICON\_SMALL.

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [December 7, 2022, 6:54am UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023/4 "2022-12-07T06:54:11Z")

</div>

@pizzafilms are you using latest JUCE? I didn’t test it yet and haven’t update my iOS app for a while now. But there was some changes since August related to CoreGraphics such as:

> [@BR: fillAll doesn't fill all](https://forum.juce.com/t/br-fillall-doesnt-fill-all/52623):
>
> It leaves glitches around the component. Example, I do this: g.setColour (juce::Colours::red); g.fillRect (getLocalBounds().expanded (1)); g.fillAll (juce::Colours::darkgrey); [image] Then I see a red border on the component. This is a dumb example, but the actual issue is if the component is opaque then the border is random data. Code: [juce\_bugs/MainComponent.h at master · FigBug/juce\_bugs · GitHub](https://github.com/FigBug/juce_bugs/blob/master/DrawingGlitch/Source/MainComponent.h)

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [December 7, 2022, 7:02am UTC](https://forum.juce.com/t/ios-app-icon-shows-with-white-border-around-it/54023/5 "2022-12-07T07:02:26Z")

</div>

Yes, I’m up to date on develop.

I don’t think that’s the same issue. I’m pretty sure that this is related to whatever JUCE utility creates the icon set for Xcode. I’m using CLion/CMake to generate the Xcode project, which in turn uses the Juce CMake code.
