Skip to content

Commit 4b43839

Browse files
committed
Update readme
1 parent 48598d4 commit 4b43839

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "65E0370518FE6BE200EFA799"
18-
BuildableName = "Demo.app"
18+
BuildableName = "WaveTransition.app"
1919
BlueprintName = "Demo"
2020
ReferencedContainer = "container:Demo.xcodeproj">
2121
</BuildableReference>
@@ -43,7 +43,7 @@
4343
<BuildableReference
4444
BuildableIdentifier = "primary"
4545
BlueprintIdentifier = "65E0370518FE6BE200EFA799"
46-
BuildableName = "Demo.app"
46+
BuildableName = "WaveTransition.app"
4747
BlueprintName = "Demo"
4848
ReferencedContainer = "container:Demo.xcodeproj">
4949
</BuildableReference>
@@ -66,7 +66,7 @@
6666
<BuildableReference
6767
BuildableIdentifier = "primary"
6868
BlueprintIdentifier = "65E0370518FE6BE200EFA799"
69-
BuildableName = "Demo.app"
69+
BuildableName = "WaveTransition.app"
7070
BlueprintName = "Demo"
7171
ReferencedContainer = "container:Demo.xcodeproj">
7272
</BuildableReference>
@@ -85,7 +85,7 @@
8585
<BuildableReference
8686
BuildableIdentifier = "primary"
8787
BlueprintIdentifier = "65E0370518FE6BE200EFA799"
88-
BuildableName = "Demo.app"
88+
BuildableName = "WaveTransition.app"
8989
BlueprintName = "Demo"
9090
ReferencedContainer = "container:Demo.xcodeproj">
9191
</BuildableReference>

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="640" height="240" src="assets/logo.png"/>
2+
<img width="420" height="240" src="assets/logo.png"/>
33
</p>
44

55
[![Build Status](https://travis-ci.org/andreamazz/AMWaveTransition.png)](https://travis-ci.org/andreamazz/AMWaveTransition)
@@ -11,6 +11,12 @@ Custom transition between viewcontrollers holding tableviews. Each cell is anima
1111

1212
Read more about transitions [here](http://andreamazz.github.io/blog/2014/04/19/transitioning/) and UIKit Dynamics [here](http://andreamazz.github.io/blog/2014/05/22/uikit-dynamics/)
1313

14+
<p align="center">
15+
<a href='https://appetize.io/app/r7enynxrtw4740353za6a39d1w' alt='Live demo'>
16+
<img width="50" height="60" src="assets/demo.png"/>
17+
</a>
18+
</p>
19+
1420
###Screenshot
1521

1622
![AMWaveTransition](https://raw.githubusercontent.com/andreamazz/AMWaveTransition/master/assets/screenshot.gif)
@@ -39,8 +45,7 @@ Implement ```UINavigationControllerDelegate``` and this delegate method:
3945
- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
4046
animationControllerForOperation:(UINavigationControllerOperation)operation
4147
fromViewController:(UIViewController*)fromVC
42-
toViewController:(UIViewController*)toVC
43-
{
48+
toViewController:(UIViewController*)toVC {
4449
if (operation != UINavigationControllerOperationNone) {
4550
// Return your preferred transition operation
4651
return [AMWaveTransition transitionWithOperation:operation];
@@ -50,22 +55,19 @@ Implement ```UINavigationControllerDelegate``` and this delegate method:
5055
```
5156
Remember to set your instance as the navigation delegate:
5257
```objc
53-
- (void)viewDidAppear:(BOOL)animated
54-
{
58+
- (void)viewDidAppear:(BOOL)animated {
5559
[super viewDidAppear:animated];
5660
[self.navigationController setDelegate:self];
5761
}
5862

59-
- (void)dealloc
60-
{
63+
- (void)dealloc {
6164
[self.navigationController setDelegate:nil];
6265
}
6366
```
6467

6568
Implement th ```AMWaveTransitioning``` protocol by returning your tableview's visible cells:
6669
```objc
67-
- (NSArray*)visibleCells
68-
{
70+
- (NSArray*)visibleCells {
6971
return [self.tableView visibleCells];
7072
}
7173
```
@@ -82,14 +84,12 @@ self.interactive = [[AMWaveTransition alloc] init];
8284
```
8385
Attach the gesture recognizer in your `viewDidAppear:` and detach it in the `viewDidDisappear:`:
8486
```objc
85-
- (void)viewDidAppear:(BOOL)animated
86-
{
87+
- (void)viewDidAppear:(BOOL)animated {
8788
[super viewDidAppear:animated];
8889
[self.interactive attachInteractiveGestureToNavigationController:self.navigationController];
8990
}
9091

91-
- (void)viewDidDisappear:(BOOL)animated
92-
{
92+
- (void)viewDidDisappear:(BOOL)animated {
9393
[super viewDidDisappear:animated];
9494
[self.interactive detachInteractiveGesture];
9595
}
@@ -100,7 +100,12 @@ If the view controller you are transitioning to has no table view, don't impleme
100100
As you can see in the sample project, the best results are obtained by setting the view and the cells' background to ```clearColor```, and setting a background color or a background image to the navigation controller.
101101

102102
#Author
103-
[Andrea Mazzini](https://twitter.com/theandreamazz)
103+
[Andrea Mazzini](https://twitter.com/theandreamazz). I'm available for freelance work, feel free to contact me.
104+
105+
Want to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.me/andreamazzini).
106+
107+
#Contributors
108+
Thanks to [everyone](https://github.com/andreamazz/AMWaveTransition/graphs/contributors) kind enough to submit a pull request.
104109

105110
#MIT License
106111

assets/demo.png

3.93 KB
Loading

assets/logo.png

-8.49 KB
Loading

0 commit comments

Comments
 (0)