# iOS Statusbar: not showing icons

**URL:** <https://forums.fusetools.com/t/ios-statusbar-not-showing-icons/8155>\
**Category:** How-to Discussions\
**Created:** [August 25, 2021, 12:32pm UTC](https://forums.fusetools.com/t/ios-statusbar-not-showing-icons/8155 "2021-08-25T12:32:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/enrico/32/144_2.png) [@Enrico](https://forums.fusetools.com/u/Enrico)\
**Post date:** [August 25, 2021, 12:32pm UTC](https://forums.fusetools.com/t/ios-statusbar-not-showing-icons/8155/1 "2021-08-25T12:32:53Z")

</div>

I rebuilt my app after two years for iOS using Fuse X 2.0 beta 10.

With the recent Fuse improvements now it’s possible to set the statusbar background color so I added the code:

```
<Activated>
    <SetStatusBarUI Style="Light" Color="#C40008" IsVisible="true" />
</Activated>

```

in Android 6.0, 7.0 and 11.0 it works correctly (red background and white icons), in iOS 12.5.2 (iPhone 5S) the statusbar background is not set to red but it’s still white and the icons, set to _Light_ are not visible, only the battery icon is visible:

 ![IMG_0012](https://canada1.discourse-cdn.com/flex035/uploads/fusetools1/original/2X/d/d645bf393377cb7de1fd8cbbaff174efd3ece69b.png)

If I set `Style="Dark"` the icons are visible (because now are black) but the statusbar background is always white and not red as wanted. In XCode _Status bar style_ is _Default_.

 ![IMG_0013](https://canada1.discourse-cdn.com/flex035/uploads/fusetools1/original/2X/1/1838541a803498d5888234030abb34edf5bde9aa.png)

I don’t understand if I may set the color of the statusbar in iOS or it is simply not possible, and if in iOS I have to use always `Style="Dark"` to make the icons visible.

In the previous version of the app I used the following lines are these still useful?

```
<Android.StatusBarConfig Color="#000000" IsVisible="True" /> 
<iOS.StatusBarConfig Style="Light" Animation="Slide" IsVisible="True" />
```

---

<div class="post-metadata">

**Author:** ![Hassan\_M](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hassan_m/32/957_2.png) [@Hassan\_M](https://forums.fusetools.com/u/Hassan_M)\
**Post date:** [August 26, 2021, 5:42am UTC](https://forums.fusetools.com/t/ios-statusbar-not-showing-icons/8155/2 "2021-08-26T05:42:36Z")

</div>

Thank you for pointing it out, Yeah on iOS it still missing the implementation for changing the background color of the Status Bar.

The developer docs on the Apple website there is no mention on how to do that, and we’ll have to do a workaround to achieve it and unfortunately, we hadn’t found it (at the time when we created the `SetStatusBarUI` trigger action). But I’ll try to look at it again and finishing it.

In the meantime, You can still change the StatusBar color by creating a `DockPanel` and add a `StatusBarBackground` panel inside of it and dock it to the top. And then change/set the `Background` property of `StatusBarBackground` when page Activated. for reference : [StatusBarBackground Class - Fuse Documentation](https://fuseopen.com/docs/fuse/controls/statusbarbackground.html#section-introduction)

By the way, to the last code you mention, Yes it is still useful if you want to set statically and doesn’t want to change StatusBar style of example if a page change

---

<div class="post-metadata">

**Author:** ![Enrico](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/enrico/32/144_2.png) [@Enrico](https://forums.fusetools.com/u/Enrico)\
**Post date:** [August 30, 2021, 2:59pm UTC](https://forums.fusetools.com/t/ios-statusbar-not-showing-icons/8155/3 "2021-08-30T14:59:45Z")

</div>

Thank you for the prompt answer. After many tempatives I did not manage to set the background color.

I tried like this but it did not change anything:

```
<DockPanel Dock="Top">
    <Activated>
        <StatusBarBackground Dock="Top" Background="#C40008" />
    </Activated>
</DockPanel>

```

If I remove

```
<Activated>
    <SetStatusBarUI Style="Dark" Color="#C40008" IsVisible="true" />
</Activated>

```

Icons are not visible, so this line must be kept and _Style_ must be _Dark_.

Don’t worry I will wait for any update. At the moment the status bar may stay white with dark icons.
