Skip to content

Instantly share code, notes, and snippets.

@marekkrzynowek
Created October 11, 2017 13:04
Show Gist options
  • Select an option

  • Save marekkrzynowek/da0d751c11b5ff9085b91d05cff56f25 to your computer and use it in GitHub Desktop.

Select an option

Save marekkrzynowek/da0d751c11b5ff9085b91d05cff56f25 to your computer and use it in GitHub Desktop.
let x = frame.origin.x + (self.frame.width * xScale) * self.layer.anchorPoint.x
let y = frame.origin.y + (self.frame.height * yScale) * self.layer.anchorPoint.y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment