a guest Feb 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var RiderLayer : CALayer = CALayer()
- let shapeLayer_Lap1 :CAShapeLayer = CAShapeLayer()
- var img_rider :UIImage = UIImage()
- img_rider = UIImage(named: "red_dot")!
- RiderLayer.frame.size = CGSize(width: img_rider.size.width, height: img_rider1.size.height)
- RiderLayer.frame.origin.x = 0.0
- RiderLayer.frame.origin.y = 0
- RiderLayer.contents = img_rider1.cgImage
- RiderLayer.zPosition = 1
- RiderLayer.needsDisplayOnBoundsChange = false
RAW Paste Data