crash on fast page swipe grab
rursache opened this issue · 2 comments
rursache commented
hello, the app crashes on the following lines:
// cancel transition in case of changing direction
if (translation.x > 0 && animationDirectionInteractive != .right) || (translation.x < 0 && animationDirectionInteractive != .left) {
interactiveTransitionInProgress = false
finishTransition(isCancelled: true)
}
with error:
2017-09-29 19:22:38.868030+0300 APP[7739:1446562] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
fatal error: unexpectedly found nil while unwrapping an Optional value
2017-09-29 19:23:10.943729+0300 APP[7739:1446562] fatal error: unexpectedly found nil while unwrapping an Optional value
you can reproduce this by including a scrollview in a viewcontroller then add it to swiftypagecontroller. swipe thought the scrollview fast and you'll catch the crash
rursache commented
you can use
if (animationDirectionInteractive == nil) {
return
}
above the code where is crashing until an official fix
alkhokhlov commented
Fixed. Thanks