Rxswift: How to bind rx_tap with viewmodels ?

Created on 27 Apr 2016  Â·  2Comments  Â·  Source: ReactiveX/RxSwift

Hi

Have functions in viewmodel which return Observable . How to subsribe these functions to rx_tap event.

Most helpful comment

¯_(ツ)_/¯

All 2 comments

Hi @vishal91 ,

please take a look at examples inside RxExample app. There are a lot of simple real world examples how to use this library, including the ones you are asking for.
To run them, just open Rx.xcworspace, chose RxExample-iOS target and hit run.
If you are using CocoaPods you can also just write $ pod try RxSwift, chose RxExample-iOS target and hit run.

It is important to note that to use this library efficiently, you need to understand the underlying Rx abstraction of observable sequences. If you are having issues understanding the Rx abstraction of observable sequences, please take a look at GettingStarted.md.

If you are having troubles understanding how particular operators work, we've tried to demonstrate them in Rx.playground and there are also operator unit tests.

It would be great to ask questions like this on http://stackoverflow.com/ tagged with rx-swift. We have recently hooked up http://stackoverflow.com/questions/tagged/rx-swift rss feed to our slack channel to increase chances of your stackoverflow questions getting answered. We are hoping this would make the process of asking these kinds of questions and getting an answer more streamlined.
To increase the chances of getting your question answered, please try to sketch your question as short code snippet and explain the context:

  • what are you trying to accomplish
  • what is the broader context why are you trying to do this
  • what is the problem you are currently having that's preventing you from solving it
  • what potential solutions have you tried

We also have an awesome slack channel Slack channel Join Slack Channel, so maybe you can also find help there.

¯_(ツ)_/¯

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angerman picture angerman  Â·  3Comments

RobinFalko picture RobinFalko  Â·  3Comments

gekitz picture gekitz  Â·  3Comments

Z-JaDe picture Z-JaDe  Â·  3Comments

RafaelPlantard picture RafaelPlantard  Â·  3Comments