You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2018. It is now read-only.
My app crashes if I run the PagingMenuController with only one viewController
I have tracked the bug down to contentOffsetXForCurrentPage in MenuView.
menuItemViews.count is 1 nextIndex is 0 menuItemViews.count - 1 is 0 let ratio = nextIndex / menuItemViews.count - 1 is 0 / 0 which returns nan
Here is the error log: 2015-07-27 13:36:34.350 Authenticator[94857:984290] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan 0; 375 60]'
The text was updated successfully, but these errors were encountered:
My app crashes if I run the
PagingMenuController
with only one viewControllerI have tracked the bug down to
contentOffsetXForCurrentPage
inMenuView
.menuItemViews.count
is 1nextIndex
is 0menuItemViews.count - 1
is 0let ratio = nextIndex / menuItemViews.count - 1
is 0 / 0 which returnsnan
Here is the error log:
2015-07-27 13:36:34.350 Authenticator[94857:984290] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan 0; 375 60]'
The text was updated successfully, but these errors were encountered: