Skip to content

Instantly share code, notes, and snippets.

@ahikmatf
Created October 20, 2016 08:37
Show Gist options
  • Save ahikmatf/667a533fe6338e745ecad191e70f26bc to your computer and use it in GitHub Desktop.
Save ahikmatf/667a533fe6338e745ecad191e70f26bc to your computer and use it in GitHub Desktop.
let transition = CATransition()
transition.duration = 0.5
transition.type = kCATransitionPush
transition.subtype = kCATransitionFromTop
view.window!.layer.add(transition, forKey: kCATransition)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment