mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user