Skip to content

Commit

Permalink
Fix Issue #98
Browse files Browse the repository at this point in the history
  • Loading branch information
m1entus committed Jul 23, 2016
1 parent 29e6459 commit 086b9c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
#import <Foundation/Foundation.h>
#import "MZTransition.h"

@interface CustomTransition : NSObject <MZFormSheetPresentationViewControllerTransitionProtocol>
@interface CustomTransition : MZTransition <MZFormSheetPresentationViewControllerTransitionProtocol>
@end
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern CGFloat const MZFormSheetPresentationViewControllerAnimatorDefaultTransit
@property (nonatomic, assign, getter=isPresenting) BOOL presenting;
@property (nonatomic, assign, getter=isInteractive) BOOL interactive;
@property (nonatomic, assign) CGFloat transitionDuration;
@property (nonatomic, strong) MZTransition *transition;
@property (nonatomic, strong) id<MZFormSheetPresentationViewControllerTransitionProtocol> transition;

+ (instancetype)animatorForTransitionStyle:(MZFormSheetPresentationTransitionStyle)transitionStyle;
@end
8 changes: 6 additions & 2 deletions MZFormSheetPresentationController/MZTransition.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ typedef NS_ENUM(NSInteger, MZFormSheetPresentationTransitionStyle) {

@end

#if __IPHONE_OS_VERSION_MAX_ALLOWED < 100000
@interface MZTransition
: NSObject <MZFormSheetPresentationViewControllerTransitionProtocol>

: NSObject <MZFormSheetPresentationViewControllerTransitionProtocol>
#else
@interface MZTransition
: NSObject <MZFormSheetPresentationViewControllerTransitionProtocol, CAAnimationDelegate>
#endif
/**
* Register custom transition animation style.
* You need to setup transitionStyle to MZFormSheetTransitionStyleCustom.
Expand Down

0 comments on commit 086b9c5

Please sign in to comment.