Merge pull request #78 from dpeek/fix/disable-layer-resize-animation
Disables default system animation when resizing AVPlayerLayer
This commit is contained in:
commit
cb3c519195
@ -389,7 +389,10 @@ static NSString *const statusKeyPath = @"status";
|
||||
- (void)layoutSubviews
|
||||
{
|
||||
[super layoutSubviews];
|
||||
[CATransaction begin];
|
||||
[CATransaction setAnimationDuration:0];
|
||||
_playerLayer.frame = self.bounds;
|
||||
[CATransaction commit];
|
||||
}
|
||||
|
||||
#pragma mark - Lifecycle
|
||||
|
Loading…
Reference in New Issue
Block a user