mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Video Chat Improvements
This commit is contained in:
parent
da0f47b655
commit
5eb61351f9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user