Open luxystech opened 8 years ago
This is due to the application of the radius automatically setting masksToBounds to YES for the view's layer. What I ended up doing is define a hierarchy of views, with the outer wrapper view defining the shadow and a clear background color, and the inner content view defining the corner radius:
Outer {
background-color: clear;
shadow-color: #000000;
shadow-opacity: 0.25;
shadow-radius: 5;
}
Inner {
background-color: #AAAAAA;
corner-radius: 5;
}
Thanks, will try
I'm using NUI for my project and trying to apply properties for UIView the shadow and corners together it doesn't work.
It shows me only borders. If I comment first line - I see the shadow
Appreciate in advance for any cheats with NUI.