Skip to content
Browse files

more examples

  • Loading branch information...
icanzilb committed Sep 18, 2017
1 parent 6b031a4 commit 394b904d628c7ba0b42b0d9ea8a1df51c5fbe493
@@ -103,13 +103,38 @@ extension AnimatedSink where Base: UIView {

III. Now you can use your new animation to bind subscriptions, instead of `rx.text` use `rx.animated.tick(.left, duration: 0.75).text` providing the orientation you want `.left` or `.right` and a duration:
III. Now you can use your new animation to bind subscriptions. Here's how usually binding `UIImageView.rx.image` looks like:

.bind(to: imageView.rx.image)
And the result is non-animated binding:


If you use your new custom animation binding like so:

.bind(to: imageView.rx.animated.tick(.right, duration: 0.33).image)

The effect will be:


And if you use the same animation on a `UILabel`:

.bind(to: labelCustom.rx.animated.tick(.left, duration: 0.75).text)


The sky is the limit! (Or good taste ofc.)

## Example

The demo app shows few animations in action, download the repo and give it a try.
BIN +1.64 MB etc/custom-anim.gif
Binary file not shown.
Binary file not shown.
BIN +115 KB etc/custom-noanim.gif
Binary file not shown.

0 comments on commit 394b904

Please sign in to comment.
You can’t perform that action at this time.