<commit_before>NHSlidingController
===================

NHSLidingController is a sliding controller to handle interfaces with a top and bottom view controllers where the top one slides to reveal the bottom one.

There are a lot of alternative out there but none of them had the animations and elasticity feel right to me.

This class is completely self contained, from displaying to animation to handling taps and gestures. You create it, give it its top and bottom view controllers and that's it!

##Usage

Create the NHSlidingController with the top and bottom controller and assign it as the root ViewController from you window.

``` objective-c
	UIViewController *topViewController; // Your Top ViewController
	UIViewController *bottomViewController; //Your Bottom ViewController
	NHSlidingController *slidingController = [[NHSlidingController alloc] 	initWithTopViewController:topViewController 	bottomViewController:bottomViewController];
	self.window.rootViewController = slidingController;
```

That's it. You can now slide and reveal the bottom view controller.
You can also trigger the open/close animation programatically.

The `UIViewController+SlidingController` category adds the NHSlidingController as a property of your view controllers. In Any of your view controllers you can do:

``` objective-c
NHSlidingController *slidingController = self.slidingController;
[slidingController toggleDrawer];
[slidingController toggleDrawer];
```


##Adding NHSlidingController to your project

NHSlidingController is available on [CocoaPods](http://cocoapods.org). Add the following line to your `Podfile`:

``` ruby
pod 'NHSlidingController'
```
and then run `pod install` to install the dependency.
<commit_msg>Updated readme and podspec file<commit_after>NHSlidingController
===================

NHSLidingController is a sliding controller to handle interfaces with a top and bottom view controllers where the top one slides to reveal the bottom one.

There are a lot of alternative out there but none of them had the animations and elasticity feel right to me.

This class is completely self contained, from displaying to animation to handling taps and gestures. You create it, give it its top and bottom view controllers and that's it!

##Usage

Create the NHSlidingController with the top and bottom controller and assign it as the root ViewController from you window.

``` objective-c
UIViewController *topViewController; // Your Top ViewController
UIViewController *bottomViewController; //Your Bottom ViewController
NHSlidingController *slidingController = [[NHSlidingController alloc] initWithTopViewController:topViewController bottomViewController:bottomViewController];
self.window.rootViewController = slidingController;
```

That's it. You can now slide and reveal the bottom view controller.
You can also trigger the open/close animation programatically.

The `UIViewController+SlidingController` category adds the NHSlidingController as a property of your view controllers. In Any of your view controllers you can do:

``` objective-c
NHSlidingController *slidingController = self.slidingController;
[slidingController toggleDrawer];
```


##Adding NHSlidingController to your project

NHSlidingController is available on [CocoaPods](http://cocoapods.org). Add the following line to your `Podfile`:

``` ruby
pod 'NHSlidingController'
```
and then run `pod install` to install the dependency.

{'fraction_non_alphanumeric': 0.06469555035128806, 'fraction_numerical': 0.0, 'mean_word_length': 5.959266802443992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105390', 'n_tokens_mistral': 878, 'n_tokens_neox': 796, 'n_words': 390}