Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-06-25 23:27:13 +03:00
parent dcf1217fbf
commit 505746cc0f
3 changed files with 9 additions and 4 deletions

View File

@@ -138,10 +138,15 @@ const CGFloat TGPhotoAvatarPreviewLandscapePanelSize = TGPhotoAvatarPreviewPanel
- (void)transitionIn
{
_scrubberView.layer.rasterizationScale = [UIScreen mainScreen].scale;
_scrubberView.layer.shouldRasterize = true;
[UIView animateWithDuration:0.3f animations:^
{
_portraitToolsWrapperView.alpha = 1.0f;
_landscapeToolsWrapperView.alpha = 1.0f;
} completion:^(BOOL finished) {
_scrubberView.layer.shouldRasterize = false;
}];
switch (self.effectiveOrientation)