Fix black strip sometimes appearing over media when opening that media from chat.
This commit is contained in:
parent
34bbeb7f72
commit
87bc49ce0c
@ -164,6 +164,8 @@ extension MediaZoomAnimationController: UIViewControllerAnimatedTransitioning {
|
||||
maskLayer.frame = clippingView.layer.bounds.inset(by: clippingAreaInsets)
|
||||
maskLayer.backgroundColor = UIColor.black.cgColor
|
||||
clippingView.layer.mask = maskLayer
|
||||
} else {
|
||||
clippingView.layer.mask = nil
|
||||
}
|
||||
}
|
||||
animator.addCompletion { _ in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user