Search code examples
iosopacity

Opacity not working in storyboard


I'm trining to change view's background color to opacity 10% from the storyboard, but when I run it on a device the color looks like the opacity is at 100%.

Also, I would prefer to not do this from code.

So here is how I set it. And I want to get the gray color, but instead I get the black one. What am I doing wrong?

enter image description here


Solution

  • Please check If you have any View below that view. Also check If you are selecting right view. When I set RGB to 0 and make opacity to %10. I'm getting a light gray as you want.

    Screenshot