Skip to content

Commit fa5f2d6

Browse files
author
Olga Konoreva
committed
Fix bug when user uses interactive transitioning first
1 parent 8728435 commit fa5f2d6

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
@@ -448,10 +448,10 @@ class MenuInteractiveTransition: NSObject, UIViewControllerInteractiveTransition
448448
}
449449

450450
case .changed:
451-
guard let transitionContext = transitionContext else {
452-
fatalError("Invalid transitionContext value. This property should not be nil")
453-
}
454451
if transitionStarted && (present && dx > 0 || !present && dx < 0) {
452+
guard let transitionContext = transitionContext else {
453+
fatalError("Invalid transitionContext value. This property should not be nil")
454+
}
455455
updateTransition(percentComplete: progress)
456456
transitionContext.updateInteractiveTransition(progress)
457457
}

0 commit comments

Comments
 (0)