Skip to content

Instantly share code, notes, and snippets.

@Kievkao
Created July 17, 2016 07:30
Show Gist options
  • Select an option

  • Save Kievkao/ef98213bc98eac019fc0131bc1c8dc3a to your computer and use it in GitHub Desktop.

Select an option

Save Kievkao/ef98213bc98eac019fc0131bc1c8dc3a to your computer and use it in GitHub Desktop.
LayerRotation
let rotation = CATransform3DMakeRotation(CGFloat(45.0 * M_PI / 180.0), 0, 0, 1)
leftSquare.transform = CATransform3DTranslate(rotation, 0, 0, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment