Skip to content

Commit 651b375

Browse files
committed
Fix Issue #60 dismissalTransitionWillBeginCompletionHandler not called?
1 parent 8fe152e commit 651b375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MZFormSheetPresentationController/MZFormSheetPresentationController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ - (void)presentationTransitionDidEnd:(BOOL)completed {
301301
}
302302

303303
- (void)dismissalTransitionWillBegin {
304-
if (self.presentationTransitionWillBeginCompletionHandler) {
305-
self.presentationTransitionWillBeginCompletionHandler(self.presentedViewController);
304+
if (self.dismissalTransitionWillBeginCompletionHandler) {
305+
self.dismissalTransitionWillBeginCompletionHandler(self.presentedViewController);
306306
}
307307
[self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
308308
[UIView animateWithDuration:[context transitionDuration] animations:^{

0 commit comments

Comments
 (0)