Refactoring

This commit is contained in:
Ilya Yelagov
2022-12-08 10:14:34 +04:00
parent 81f69b801d
commit 55e2276e43
3 changed files with 9 additions and 32 deletions

View File

@@ -428,7 +428,7 @@ final class MediaStreamVideoComponent: Component {
self.hadVideo,
// TODO: remove from here and move to call end (or at least to background)
let snapshot = videoView.snapshotView(afterScreenUpdates: false) ?? videoView.snapshotView(afterScreenUpdates: true) {
lastFrame[component.call.peerId.id.description] = snapshot// ()!
lastFrame[component.call.peerId.id.description] = snapshot
}
var aspect = videoView.getAspect()
@@ -500,6 +500,7 @@ final class MediaStreamVideoComponent: Component {
placeholderView.frame = loadingBlurView.frame
placeholderView.layer.cornerRadius = videoCornerRadius
placeholderView.clipsToBounds = true
placeholderView.subviews.forEach { $0.frame = placeholderView.bounds }
shimmerBorderLayer.frame = loadingBlurView.bounds