From 5eb61351f92d3fb29f72c46b016b7a93d1a0c919 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Wed, 26 May 2021 15:53:03 +0400 Subject: [PATCH] Video Chat Improvements --- submodules/TelegramCallsUI/Sources/CallStatusBarNode.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCallsUI/Sources/CallStatusBarNode.swift b/submodules/TelegramCallsUI/Sources/CallStatusBarNode.swift index 74d8885ca7..9bbdc61664 100644 --- a/submodules/TelegramCallsUI/Sources/CallStatusBarNode.swift +++ b/submodules/TelegramCallsUI/Sources/CallStatusBarNode.swift @@ -755,11 +755,11 @@ final class CurveView: UIView { private func animateToNewShape() { if self.shapeLayer.path == nil { let points = self.generateNextCurve(for: self.bounds.size) - self.shapeLayer.path = UIBezierPath.smoothCurve(through: points, length: bounds.width, smoothness: self.smoothness).cgPath + self.shapeLayer.path = UIBezierPath.smoothCurve(through: points, length: bounds.width, smoothness: self.smoothness, curve: true).cgPath } let nextPoints = self.generateNextCurve(for: self.bounds.size) - let nextPath = UIBezierPath.smoothCurve(through: nextPoints, length: bounds.width, smoothness: self.smoothness).cgPath + let nextPath = UIBezierPath.smoothCurve(through: nextPoints, length: bounds.width, smoothness: self.smoothness, curve: true).cgPath let animation = CABasicAnimation(keyPath: "path") let previousPath = self.shapeLayer.path