Example of Elevate transition
NBibikov opened this issue · 3 comments
NBibikov commented
Hello! Please help me understand elevate transition. I have vc with facebook button. And i want that after tap on button my first controller present second with elevate animation.
And i don't understand how work "maskView: , to: " in parameters. Thanks
let mainStoryboard: UIStoryboard = UIStoryboard(name: kTimelineStoryboard, bundle: nil)
let destinationViewController = mainStoryboard.instantiateViewControllerWithIdentifier(kCustomNavController)
self.tr_presentViewController(destinationViewController, method: TRPresentTransitionMethod.Elevate(maskView: self.facebookLogin, to: CGPointZero), statusBarStyle: TRStatusBarStyle.LightContent, completion:
DianQK commented
Hi~ @NBibikov
About maskView, you can see http://transitiontreasury.com
Elevate
via DianQK
.Elevate(maskView: UIView, to: CGPoint)
section
the pink view is a maskView
NBibikov commented
can you help me understand how my code should look like?
Now i use
self.tr_presentViewController(destinationViewController, method: TRPresentTransitionMethod.Elevate(maskView: self.addReviewButtonOutlet, to: UIScreen.mainScreen().tr_center), statusBarStyle: TRStatusBarStyle.LightContent, completion:nil)
But that doesn't make elevate animation
NBibikov commented
Can you provide exemple of .Elevate animation in this project - https://github.com/NBibikov/ElevateAnimationExemple
Thank you very much!