# BTTransition **Repository Path**: keje/BTTransition ## Basic Information - **Project Name**: BTTransition - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-24 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BTTransition [![CI Status](https://img.shields.io/travis/453816118@qq.com/BTTransition.svg?style=flat)](https://travis-ci.org/453816118@qq.com/BTTransition) [![Version](https://img.shields.io/cocoapods/v/BTTransition.svg?style=flat)](https://cocoapods.org/pods/BTTransition) [![License](https://img.shields.io/cocoapods/l/BTTransition.svg?style=flat)](https://cocoapods.org/pods/BTTransition) [![Platform](https://img.shields.io/cocoapods/p/BTTransition.svg?style=flat)](https://cocoapods.org/pods/BTTransition) ## Preview ### add new byside of animate transition ![展示](https://raw.githubusercontent.com/biostome/BTTransition/master/Example/a1.gif) ![展示](https://raw.githubusercontent.com/biostome/BTTransition/master/Example/a2.gif) ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements ## Installation BTTransition is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod 'BTTransition' ``` ## Easy Usg ```objc @implementation BTPresentViewController - (instancetype)init{ UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; self = [storyboard instantiateViewControllerWithIdentifier:@"BTPresentViewController"];; if (self) { _aniamtion = [[BTCoverVerticalTransition alloc]initPresentViewController:self withRragDismissEnabal:YES]; self.transitioningDelegate = _aniamtion; } return self; } ... @end ``` Or ``` @implementation BTPresentViewController - (instancetype)init{ [super init]; if (self) { _aniamtion = [[BTCoverVerticalTransition alloc]initPresentViewController:self withRragDismissEnabal:YES]; self.transitioningDelegate = _aniamtion; } return self; } ... @end ``` # How present ```objc @implementation - (void)viewDidLoad { [super viewDidLoad]; ... } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ BTPresentViewController * vc = [[BTPresentViewController alloc]init];; [self presentViewController:vc animated:YES completion:nil]; } ... @end ``` ## Author biostome, 453816118@qq.com ## License BTTransition is available under the MIT license. See the LICENSE file for more info.