Skip to content

Commit 542b1b5

Browse files
author
Luc Dion
committed
Update readme
1 parent b04a1ad commit 542b1b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/animations.md

+13
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ This also means that you can modify only the property you want to animate, for e
2222
}
2323
```
2424

25+
</br>
26+
2527
## Layout strategies
2628
Multiple strategies can be used to animate layout using PinLayout. The choice is a question of preferences and the kind of animations you want to achieve.
2729

@@ -128,6 +130,7 @@ func didTapTogglePosition() {
128130
### Other strategies
129131
It's really up to you to think of animation's strategies that match your situation. With PinLayout you are always in control of everything, including animations.
130132

133+
</br>
131134

132135
## Collision between animations and `layoutSubViews()`
133136
In some particular situation it is possible that `layoutSubViews()` may be called during the animation is in progress, this can occur particularly on long animation. To handle this kind of situation it is possible to use a boolean indicating if an animation is in progress, and to block temporarely the layout of animated views in `layoutSubViews()`.
@@ -175,3 +178,13 @@ func didTapTogglePosition() {
175178
}
176179
```
177180

181+
</br>
182+
183+
## Animation Example
184+
You can check the animation example available in the [PinLayout's Example App](https://github.com/layoutBox/PinLayout/blob/master/docs/examples.md):
185+
186+
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/Animations/AnimationsView.swift)
187+
188+
<img src="images/example-animations.gif" width=160/>
189+
190+

0 commit comments

Comments
 (0)