Fix GIF rounded corners with layer-backed clipping
commitec8d8ff3841d39d59dacda58fbf7b1f4cca62040
authorMark <mark.eibes@gmail.com>
dateSat 14 Feb 2026, 09:24 (8 months ago)
parente50eed9
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+2
@@ -1493,6 +1493,8 @@ RCT_EXPORT_VIEW_PROPERTY(onCancel, RCTBubblingEventBlock)
14931493
14941494- (instancetype)initWithFrame:(NSRect)frame {
14951495 if (self = [super initWithFrame:frame]) {
1496+ self.wantsLayer = YES;
1497+ self.layer.masksToBounds = YES;
14961498 _player = [[AVPlayer alloc] init];
14971499 _playerView = [[AVPlayerView alloc] initWithFrame:self.bounds];
14981500 _playerView.player = _player;