Skip to content

Commit 81abfe6

Browse files
author
Olga Konoreva
authored
Merge branch 'develop' into feature/documentation
2 parents ed2045d + fa5f2d6 commit 81abfe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/MenuAnimator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ class MenuInteractiveTransition: NSObject, UIViewControllerInteractiveTransition
482482
}
483483

484484
case .changed:
485-
guard let transitionContext = transitionContext else {
486-
fatalError("Invalid `transitionContext` value. This property should not be nil")
487-
}
488485
if transitionStarted && (present && dx > 0 || !present && dx < 0) {
486+
guard let transitionContext = transitionContext else {
487+
fatalError("Invalid `transitionContext` value. This property should not be nil")
488+
}
489489
updateTransition(percentComplete: progress)
490490
transitionContext.updateInteractiveTransition(progress)
491491
}

0 commit comments

Comments
 (0)