Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix bug where transitions would not complete if the presentation cont…
Browse files Browse the repository at this point in the history
…roller didn't implement the startWithContext method. (#45)
  • Loading branch information
jverkoey authored Sep 21, 2017
1 parent 46c92eb commit 784328d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/private/MDMViewControllerTransitionCoordinator.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ - (instancetype)initWithTransitions:(NSArray<NSObject<MDMTransition> *> *)origin

_completionBlocks = [NSMutableArray array];

if (_presentationController) {
if (_presentationController
&& [_presentationController respondsToSelector:@selector(startWithContext:)]) {
_presentationContext =
[[MDMViewControllerTransitionContext alloc] initWithTransition:nil
direction:direction
Expand Down

0 comments on commit 784328d

Please sign in to comment.