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

Commit

Permalink
Expose the presentation controller in TransitionContext (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
randcode-generator authored Jun 16, 2017
1 parent 7ee1fab commit f643cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/MDMTransitionContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ NS_SWIFT_NAME(TransitionContext)
*/
@property(nonatomic, strong, readonly, nonnull) UIView *containerView;

/**
The presentation view controller for this transition.
*/
@property(nonatomic, strong, readonly, nullable) UIPresentationController *presentationController;
@end
2 changes: 1 addition & 1 deletion src/private/MDMViewControllerTransitionContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

@implementation MDMViewControllerTransitionContext {
id<UIViewControllerContextTransitioning> _transitionContext;
UIPresentationController *_presentationController;
}

@synthesize direction = _direction;
@synthesize sourceViewController = _sourceViewController;
@synthesize backViewController = _backViewController;
@synthesize foreViewController = _foreViewController;
@synthesize presentationController = _presentationController;

- (nonnull instancetype)initWithTransition:(nonnull id<MDMTransition>)transition
direction:(MDMTransitionDirection)direction
Expand Down

0 comments on commit f643cd5

Please sign in to comment.