Open techrah opened 9 years ago
The push animation is disabled is because it causes weird layout issues.
I've fixed this problem outside of SWRevealViewController (in my own code). Looking into fixing it properly in a merge request...
I ended up fixing this by using UINavigationController's setViewControllers:animated:
. It's a more natural animation anyways, IMO.
I encountered a lot of problems trying to fix this properly inside of SWRevealViewController. Hence the workaround.
Duplicate of #329.
Same problem here, can you give some details on the workaround?
For me it is animated !
I'm glad to hear iDevelopper :) For me it is not ... after using it several times pushFrontViewController:animated is not animated anymore
What is the animation you expect? Front goes a little right and after completely left?
"Front goes a little right and after completely left?" exactly! :) This is what I expect and see a few times before it stops at some point. Do you have any ideas where to start looking? My guess it is something that affects most / all animations. Project however is to big to reduce it to a small test case :/
Could you download SkiPhone App on the App Store and tell me if it is what you expect. It is free
Jup, I'm sure about what animation I expect. And I got it working. The issue is it STOPS working and I'm looking for possible reasons ;)
Have you modified the property rearViewRevealOverdraw somewhere in your code?
I had the same problem with animation between controllers, so I create custom segue:
class CustomPush: UIStoryboardSegue {
override func perform() {
var sw = self.sourceViewController.revealViewController()
let transition: CATransition = CATransition()
let timeFunc : CAMediaTimingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
transition.duration = 0.35
transition.timingFunction = timeFunc
transition.type = kCATransitionReveal
transition.subtype = kCATransitionFromLeft
sw.view.layer.addAnimation(transition, forKey: kCATransition)
sw.pushFrontViewController(destinationViewController, animated: true)
}
}
Are you interested in side views on top of main view?
Then you have an segue identifier for each cell?
I have a pretty standard setup, Storyboard with entry point to a SWRevealViewController, a rear controller that hosts a menu using a table view and pushes various views. Animation works well.
However, I'm now trying to push a controller programatically using pushFrontViewController:animated: which does show the appropriate view but does not animate it into place.
I'm doing this in Swift and passing animated:true. The comments in the code states that it should perform the default animation (move to rightmost, replace, move back) but that's not happening for me.
Any ideas what might be wrong?