In swift I've successfully made an animated bezier path
which is contained inside a CAShapeLayer
. My only problem is implementing it onto other screen sizes. Does anybody know how I can scale the CAShapeLayer
with the path inside of it?
i.e. make it half the original size.
Asked
Active
Viewed 3,233 times
5

Jota
- 17,281
- 7
- 63
- 93

Matt Spoon
- 2,760
- 5
- 25
- 41
1 Answers
11
Use this function:
var shapelayer:CAShapeLayer
shapelayer.transform = CATransform3DMakeScale(, ,)

Leo
- 24,596
- 11
- 71
- 92
-
A simple solution is always best. Love it! – Matt Spoon Apr 20 '15 at 06:13