Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ra1028/raslideinviewcontroller
RASlideInViewController has an transition effect expressing the depth, and you can dismiss it by draging
https://github.com/ra1028/raslideinviewcontroller
Last synced: 4 months ago
JSON representation
RASlideInViewController has an transition effect expressing the depth, and you can dismiss it by draging
- Host: GitHub
- URL: https://github.com/ra1028/raslideinviewcontroller
- Owner: ra1028
- License: mit
- Created: 2014-04-30T11:02:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-18T20:04:22.000Z (over 10 years ago)
- Last Synced: 2024-10-16T05:58:29.446Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 940 KB
- Stars: 127
- Watchers: 7
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
RASlideInViewController
=======================#### RASlideInViewController has an transition effect expressing the depth, and you can dismiss it by draging.
### Screen shots


### Example animation
### Usage
Please add the library into your project, and create subclass of this class.
#### Example
```Objective-C
UIStoryboard *storyboard = self.storyboard;
RANewSlideInViewController *slideViewController = [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass([RANewSlideInViewController class])];
self.modalPresentationStyle = UIModalPresentationCurrentContext; //***
[self presentViewController:slideViewController animated:NO completion:nil];
``````Objective-C
UIStoryboard *storyboard = self.storyboard;
RANewSlideInViewController *slideViewController = [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass([RANewSlideInViewController class])];
slideViewController.slideInDirection = RASlideInDirectionLeftToRight;
_subWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
_subWindow.windowLevel = UIWindowLevelStatusBar;
_subWindow.rootViewController = slideViewController;
[_subWindow makeKeyAndVisible];
```#### Option
```Objective-C
typedef NS_ENUM(NSInteger, RASlideViewSlideInDirection){
RASlideInDirectionBottomToTop,
RASlideInDirectionRightToLeft,
RASlideInDirectionTopToBottom,
RASlideInDirectionLeftToRight
};@interface RASlideInViewController : UIViewController
@property (nonatomic, assign) RASlideViewSlideInDirection slideInDirection; //default RASlideInDirectionBottomToTop;
@property (nonatomic, assign) BOOL shiftBackDropView; //default NO
@property (nonatomic, assign) CGFloat animationDuration; //default .3f
@property (nonatomic, assign) CGFloat backdropViewScaleReductionRatio; //default .9f
@property (nonatomic, assign) CGFloat shiftBackDropViewValue; //default 100.f
@property (nonatomic, assign) CGFloat backDropViewAlpha; //default 0@end
```### License
RASlideInViewController is released under the MIT License, see LICENSE.txt.