Created
July 17, 2016 07:30
-
-
Save Kievkao/ef98213bc98eac019fc0131bc1c8dc3a to your computer and use it in GitHub Desktop.
LayerRotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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