Skip to content

Commit ea99860

Browse files
committed
fix(ios): apply hidden property to shadow layer
1 parent 7d1904d commit ea99860

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/ui/core/view/index.ios.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,12 @@ export class View extends ViewCommon {
774774
return this.nativeViewProtected.hidden;
775775
}
776776
[hiddenProperty.setNative](value: boolean) {
777-
this.nativeViewProtected.hidden = value;
777+
const nativeView: NativeScriptUIView = <NativeScriptUIView>this.nativeViewProtected;
778+
nativeView.hidden = value;
779+
// Apply visibility value to shadows as well
780+
if (nativeView.outerShadowContainerLayer) {
781+
nativeView.outerShadowContainerLayer.hidden = nativeView.hidden;
782+
}
778783
}
779784

780785
[visibilityProperty.getDefault](): CoreTypes.VisibilityType {

0 commit comments

Comments
 (0)