Created
May 25, 2016 19:27
-
-
Save mitchellporter/9dcffc3f0243e5463eb7834b3a10ad51 to your computer and use it in GitHub Desktop.
layer anim
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
| UIView.animateWithDuration(1.0) { | |
| // Option 1: Animate the player layer | |
| playerLayer.frame = toViewController.view.bounds | |
| // Option 2: playerLayer is a sublayer of the container view | |
| containerView.frame = toViewController.view.bounds | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.