mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video Messages Improvements
This commit is contained in:
@@ -96,6 +96,7 @@ typedef enum
|
||||
UIView *_separatorView;
|
||||
|
||||
UIImageView *_placeholderView;
|
||||
TGVideoMessageShimmerView *_shimmerView;
|
||||
|
||||
bool _automaticDismiss;
|
||||
NSTimeInterval _startTimestamp;
|
||||
@@ -329,6 +330,10 @@ typedef enum
|
||||
_placeholderView.image = [TGVideoMessageCaptureController startImage];
|
||||
[_circleView addSubview:_placeholderView];
|
||||
|
||||
_shimmerView = [[TGVideoMessageShimmerView alloc] initWithFrame:_circleView.bounds];
|
||||
[_shimmerView updateAbsoluteRect:_circleView.bounds containerSize:_circleView.bounds.size];
|
||||
[_circleView addSubview:_shimmerView];
|
||||
|
||||
if (iosMajorVersion() >= 11)
|
||||
{
|
||||
_shadowView.accessibilityIgnoresInvertColors = true;
|
||||
@@ -1182,9 +1187,11 @@ typedef enum
|
||||
[UIView animateWithDuration:0.3 delay:delay options:kNilOptions animations:^
|
||||
{
|
||||
_placeholderView.alpha = 0.0f;
|
||||
_shimmerView.alpha = 0.0f;
|
||||
_switchButton.alpha = 1.0f;
|
||||
} completion:^(__unused BOOL finished)
|
||||
{
|
||||
_shimmerView.hidden = true;
|
||||
_placeholderView.hidden = true;
|
||||
_placeholderView.alpha = 1.0f;
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user