Skip to content

Commit 572d004

Browse files
committed
Fix typos and added gifs
1 parent dd33eae commit 572d004

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

Examples/BasicMenu/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# BasicMenu
22

3-
This app consists of three screens: Home, Settings, and Menu. Tapping the menu buton anchors the top view to the right to show the menu. From there, you can tap on Home or Settings to reset the top view to the middle while changing the top view controller. This example is also a good representation of the defaults used with `ECSlidingViewController`.
3+
This app consists of three screens: Home, Settings, and Menu. Tapping the menu button anchors the top view to the right to show the menu. From there, you can tap on Home or Settings to reset the top view to the middle while changing the top view controller. This example is also a good representation of the defaults used with `ECSlidingViewController`.
4+
5+
![gif](https://dl.dropboxusercontent.com/u/4110829/BasicMenu.gif)
46

57
## How it's Made
68

Examples/LayoutDemo/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This app has a view controller on both the left and right sides. It supports rotation and is a universal app. Run it on the iPhone or iPad. Rotate it with the top view anchored to see how the layout is updated. You can swipe the top view to the left or right or tap on the buttons to trigger a transition.
44

5+
![gif](https://dl.dropboxusercontent.com/u/4110829/LayoutDemo.gif)
6+
57
## How it's Made
68

79
All the code to accomplish this is in MEAppDelegate's `application:didFinishLaunchingWithOptions:`. You would normally create subclasses of the view controllers and keep your app delegate clean, but the focus of this example is to show how to configure a sliding view controller.

Examples/TransitionFun/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Have fun with transitions with TransitionFun! This is a universal app that has an under left view and supports portrait and landscape modes. Select a transition from the table and trigger it by tapping the menu button or swiping the top view. Another thing to test out is the gestures when the top view is anchored. You can tap or pan the top view to reset it, and you cannot interact with the top view.
44

5+
![gif](https://dl.dropboxusercontent.com/u/4110829/TransitionFun.gif)
6+
57
# How it's Made
68

79
There is a lot of plumbing in the project for setting up the table and changing the sliding view controller's delegate. We'll point out some of the more interesting parts here.
@@ -49,9 +51,9 @@ if ([transitionName isEqualToString:METransitionNameDynamic]) {
4951
}
5052
```
5153
52-
The `MEDynamicTransition` is an interactive transition, so it has its own way of triggering a transition with a pan gesture. The code above switches between using the default pan gesture and the dyanmic transition pan gesture.
54+
The `MEDynamicTransition` is an interactive transition, so it has its own way of triggering a transition with a pan gesture. The code above switches between using the default pan gesture and the dynamic transition pan gesture.
5355
54-
We're using the `topViewAnchoredGesture` property to select which gestures to use when the top view is anchored. For the dyanmic transition we want to use the tap gesture and the dynamic panning gesture to reset the top view. The other case uses the default interactive transition pan gesture and a tap gesture for resetting.
56+
We're using the `topViewAnchoredGesture` property to select which gestures to use when the top view is anchored. For the dynamic transition we want to use the tap gesture and the dynamic panning gesture to reset the top view. The other case uses the default interactive transition pan gesture and a tap gesture for resetting.
5557
5658
Each custom transition conforms to the `ECSlidingViewControllerDelegate`. This allows the transition to decide if it wants to customize the animation, interaction, or layout.
5759

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Well Behaved View Controller Container
1010

11-
Your view controllers will receive the appropriate view lifecycle and rotation methods at the right time. Their layouts will be appropriately updated on rotation or bound changes while respecting their `edgesForExtendedLayout` property.
11+
Your view controllers will receive the appropriate view life cycle and rotation methods at the right time. Their layouts will be appropriately updated on rotation or bound changes while respecting their `edgesForExtendedLayout` property.
1212

1313
This allows you to use `ECSlidingViewController` in a similar fashion you would use a `UINavigationController`, `UITabBarController`, `UIPageViewController`, etc...
1414

@@ -29,7 +29,7 @@ Custom transitions use the new protocols introduced in iOS 7 while exposing an A
2929

3030
## Installation
3131

32-
Install with [Cocoapods](http://cocoapods.org) by adding the following to your Podfile:
32+
Install with [CocoaPods](http://cocoapods.org) by adding the following to your Podfile:
3333

3434
``` ruby
3535
pod 'ECSlidingViewController', '~> 2.0'
@@ -39,7 +39,7 @@ Or copy the `ECSlidingViewController/` directory from this repo into your projec
3939

4040
## Example Workspace Projects
4141

42-
A good way to learn how to use `ECSlidingViewController` is to go through the example apps in Examples.xcworkspace. Each example has a README with an explaination of how things are done.
42+
A good way to learn how to use `ECSlidingViewController` is to go through the example apps in Examples.xcworkspace. Each example has a README with an explanation of how things are done.
4343

4444
* [BasicMenu](Examples/BasicMenu/). Complete example using Storyboards with minimal code.
4545
* [LayoutDemo](Examples/LayoutDemo/). This is a universal app showcasing the layout.

0 commit comments

Comments
 (0)