mamaral / Onboard

An iOS framework to easily create a beautiful and engaging onboarding experience with only a few lines of code.
MIT License
6.46k stars 764 forks source link

One page swipe "crash" fix #178

Open tkertesz opened 7 years ago

tkertesz commented 7 years ago

Fix for: Onboard with just one page and swipingEnabled = YES combination caused Exception and crashed the app when swiping. The fix: Added “self.viewControllers.count > 1” condition to the beginning of the transitioningFromLastPage boolean evaulation. The error was indexing out of the “self.viewControllers” array’s range.