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 26a3e61 commit d47c3daCopy full SHA for d47c3da
1 file changed
Sources/SPQRCode/Interface/SPQRFrameLayer.swift
@@ -37,6 +37,19 @@ class SPQRFrameLayer: CAShapeLayer {
37
fatalError("init(coder:) has not been implemented")
38
}
39
40
+ override func action(forKey event: String) -> CAAction? {
41
+ if event == "path" {
42
+ let animation: CABasicAnimation = .init(keyPath: event)
43
+
44
+ animation.duration = 0.3
45
+ animation.timingFunction = CATransaction.animationTimingFunction()
46
47
+ return animation
48
+ }
49
50
+ return super.action(forKey: event)
51
52
53
// MARK: - Actions
54
55
func detected(with newBezierPath: UIBezierPath) {
0 commit comments