daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var RiderLayer : CALayer = CALayer()
  2. let shapeLayer_Lap1 :CAShapeLayer = CAShapeLayer()
  3.     var img_rider :UIImage = UIImage()
  4.     img_rider = UIImage(named: "red_dot")!
  5.     RiderLayer.frame.size = CGSize(width: img_rider.size.width, height: img_rider1.size.height)
  6.     RiderLayer.frame.origin.x = 0.0
  7.     RiderLayer.frame.origin.y = 0
  8.     RiderLayer.contents = img_rider1.cgImage
  9.     RiderLayer.zPosition = 1
  10.     RiderLayer.needsDisplayOnBoundsChange = false
  11.     shapeLayer_Lap1.addSublayer(RiderLayer)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top