stefanceriu / SCPageViewController

Just like UIPageViewController but better.. :)
MIT License
352 stars 70 forks source link

next page's viewDidAppear is called as user swipes #46

Closed Ashkan-Sarlak closed 6 years ago

Ashkan-Sarlak commented 6 years ago

Hey Stefan,

I have noticed a difference with UIPageViewController, which breaks some of my code's logic. As user's swipes a page, next/previous page's viewDidAppear is getting called. How can I fix this? 'viewDidLoad' should get called, but not 'viewDidAppear' If there's not a property/method for this, can I do it with overriding a method for example?

Ashkan

Ashkan-Sarlak commented 6 years ago

Found it. This property should be set to 'true': shouldLayoutPagesOnRest