We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863b551 commit eb4d180Copy full SHA for eb4d180
1 file changed
Sources/SPQRCode/Interface/SPQRFrameLayer.swift
@@ -49,6 +49,19 @@ class SPQRFrameLayer: CAShapeLayer {
49
fatalError("init(coder:) has not been implemented")
50
}
51
52
+ override func action(forKey event: String) -> CAAction? {
53
+ if event == "path" {
54
+ let animation: CABasicAnimation = .init(keyPath: event)
55
+
56
+ animation.duration = 0.3
57
+ animation.timingFunction = CATransaction.animationTimingFunction()
58
59
+ return animation
60
+ }
61
62
+ return super.action(forKey: event)
63
64
65
// MARK: - Actions
66
67
func update(using points: [CGPoint]) {
0 commit comments