I want to set shadow to parent view. But I want child views to remain the same.
What I do now is
parentView.layer.shadowRadius = 0.8;
parentView.layer.shadowOpacity = 0.3;
parentView.layer.shadowOffset = CGSizeMake(1.0, 1.4);
However, if I do this, the child views are also changed. Is there a way to set the shadow but keep the child views the same.
Thank you