Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-22 13:48:04 +04:00
parent d20661d5a9
commit 4efe0468c5
7 changed files with 77 additions and 35 deletions

View File

@@ -132,6 +132,14 @@ private final class CallVideoNode: ASDisplayNode {
self.isReadyTimer?.invalidate()
}
override func didLoad() {
super.didLoad()
if #available(iOS 13.0, *) {
self.layer.cornerCurve = .continuous
}
}
func animateRadialMask(from fromRect: CGRect, to toRect: CGRect) {
let maskLayer = CAShapeLayer()
maskLayer.frame = fromRect