rajes
rajes

Reputation: 251

How to control UIPage ViewController transition speed?

i m using UIPageViewController with page curl transition.How can i control transition page speed?

Upvotes: 1

Views: 780

Answers (1)

Ketan Parmar
Ketan Parmar

Reputation: 27428

You can use custom animation i think something like,

   let animation: CATransition = CATransition()
    animation.delegate = self
    animation.duration = 1.0
    animation.startProgress = 0.2
    animation.endProgress = 1
    animation.type = "pageCurl"
    animation.subtype = kCATransitionFromLeft
    animation.fillMode = kCAFillModeBackwards
    self.view.layer.addAnimation(animation, forKey: "animation")

Upvotes: 1

Related Questions