# Chapter 12: How to Add a UIView with a transparent background to ARKit Scene

**URL:** <https://forums.kodeco.com/t/chapter-12-how-to-add-a-uiview-with-a-transparent-background-to-arkit-scene/71694>\
**Category:** ARKit by Tutorials\
**Created:** [May 22, 2019, 6:39pm UTC](https://forums.kodeco.com/t/chapter-12-how-to-add-a-uiview-with-a-transparent-background-to-arkit-scene/71694 "2019-05-22T18:39:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarang.borude](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sarang.borude/32/96237_2.png) [@sarang.borude](https://forums.kodeco.com/u/sarang.borude)\
**Post date:** [May 22, 2019, 6:39pm UTC](https://forums.kodeco.com/t/chapter-12-how-to-add-a-uiview-with-a-transparent-background-to-arkit-scene/71694/1 "2019-05-22T18:39:57Z")

</div>

Hi all, I’ve been trying to create a UIView which has a transparent background.  
If the view’s background is transparent view, If I add it to the plane Node’s geometry.diffuse.contents, the transparent parts render white on the plane.

There are some solutions on this where instead of setting the UIView as diffuse.contents of the plane geometry, we can set UIView.layer to the diffuse.contents.

The issue with this is that the view is not interactive anymore.

Any ideas?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [May 22, 2019, 10:40pm UTC](https://forums.kodeco.com/t/chapter-12-how-to-add-a-uiview-with-a-transparent-background-to-arkit-scene/71694/2 "2019-05-22T22:40:22Z")

</div>

@jeden Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![jeden](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jeden/32/110971_2.png) [@jeden](https://forums.kodeco.com/u/jeden)\
**Post date:** [May 23, 2019, 10:46pm UTC](https://forums.kodeco.com/t/chapter-12-how-to-add-a-uiview-with-a-transparent-background-to-arkit-scene/71694/3 "2019-05-23T22:46:49Z")

</div>

Hi, have you tried embedding your view into another view, and setting its `layer` to `diffuse.contents`? Not sure if it works, but it’s worth giving a try.
