diff --git a/Natives/customcontrols/ControlLayout.m b/Natives/customcontrols/ControlLayout.m index 0559fb7f9a..8935002806 100644 --- a/Natives/customcontrols/ControlLayout.m +++ b/Natives/customcontrols/ControlLayout.m @@ -82,8 +82,10 @@ - (void)setFrame:(CGRect)frame { // https://nsantoine.dev/posts/CALayerCaptureHiding - (void)hideViewFromCapture:(BOOL)hide { - NSUInteger hideFlag = (1 << 1) | (1 << 4); - self.layer.disableUpdateMask = hide ? hideFlag : 0; + if ([self.layer respondsToSelector:@selector(disableUpdateMask)]) { + NSUInteger hideFlag = (1 << 1) | (1 << 4); + self.layer.disableUpdateMask = hide ? hideFlag : 0; + } } @end