-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated readme Better embedding * Routing to singletons * Route callback can now return class, instance or nil * Fixes
- Loading branch information
Showing
35 changed files
with
1,066 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
ARoute/Classes/Private/Extensions/UIViewController+TransitioningDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// UIViewController+TransitioningDelegate.h | ||
// Pods | ||
// | ||
// Created by Aron Balog on 01/08/16. | ||
// | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIViewController (TransitioningDelegate) | ||
|
||
@property (strong, nonatomic, nullable) id <UIViewControllerTransitioningDelegate> aroute_transitioningDelegate; | ||
|
||
@end |
26 changes: 26 additions & 0 deletions
26
ARoute/Classes/Private/Extensions/UIViewController+TransitioningDelegate.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// UIViewController+TransitioningDelegate.m | ||
// ARoute | ||
// | ||
// Created by Aron Balog on 01/08/16. | ||
// | ||
// | ||
|
||
#import "UIViewController+TransitioningDelegate.h" | ||
#import <objc/runtime.h> | ||
|
||
@implementation UIViewController (TransitioningDelegate) | ||
|
||
@dynamic aroute_transitioningDelegate; | ||
|
||
- (void)setAroute_transitioningDelegate:(id<UIViewControllerTransitioningDelegate>)aroute_transitioningDelegate | ||
{ | ||
objc_setAssociatedObject(self, @selector(aroute_transitioningDelegate), aroute_transitioningDelegate, OBJC_ASSOCIATION_RETAIN_NONATOMIC); | ||
} | ||
|
||
- (id<UIViewControllerTransitioningDelegate>)aroute_transitioningDelegate | ||
{ | ||
return objc_getAssociatedObject(self, @selector(aroute_transitioningDelegate)); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.