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

Commit f643cd5

Browse files
Expose the presentation controller in TransitionContext (#26)
#25
1 parent 7ee1fab commit f643cd5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/MDMTransitionContext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ NS_SWIFT_NAME(TransitionContext)
7979
*/
8080
@property(nonatomic, strong, readonly, nonnull) UIView *containerView;
8181

82+
/**
83+
The presentation view controller for this transition.
84+
*/
85+
@property(nonatomic, strong, readonly, nullable) UIPresentationController *presentationController;
8286
@end

src/private/MDMViewControllerTransitionContext.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020

2121
@implementation MDMViewControllerTransitionContext {
2222
id<UIViewControllerContextTransitioning> _transitionContext;
23-
UIPresentationController *_presentationController;
2423
}
2524

2625
@synthesize direction = _direction;
2726
@synthesize sourceViewController = _sourceViewController;
2827
@synthesize backViewController = _backViewController;
2928
@synthesize foreViewController = _foreViewController;
29+
@synthesize presentationController = _presentationController;
3030

3131
- (nonnull instancetype)initWithTransition:(nonnull id<MDMTransition>)transition
3232
direction:(MDMTransitionDirection)direction

0 commit comments

Comments
 (0)