This commit is contained in:
Ali
2023-08-18 21:20:37 +04:00
parent e81b1fee96
commit 5db3755cbf
17 changed files with 494 additions and 167 deletions

View File

@@ -331,7 +331,7 @@ public extension CALayer {
adjustFrameRate(animation: animation)
self.add(animation, forKey: keyPath)
self.add(animation, forKey: additive ? nil : keyPath)
}
func animateAdditive(from: NSValue, to: NSValue, keyPath: String, key: String, timingFunction: String, mediaTimingFunction: CAMediaTimingFunction? = nil, duration: Double, removeOnCompletion: Bool = true, completion: ((Bool) -> Void)? = nil) {