Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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