title: RxSwift conditional binding
body: <p>I'm trying to use a <code>UISegmentedControl</code> with <code>rx.selectedSegmentIndex</code> to bind to my viewModel actions. In my viewModel I have these properties: </p>
  
  <pre><code>let showSomething1: AnyObserver&lt;Void&gt;
  let showSomething2: AnyObserver&lt;Void&gt;
  let showSomething3: AnyObserver&lt;Void&gt;
  </code></pre>
  
  <p>In my view controller</p>
  
  <pre><code>segmentControl.rx.selectedSegmentIndex.....
  
  viewModel.showSomething1 if index 1
  viewModel.showSomething2 if index 2
  viewModel.showSomething3 if index 3
  </code></pre>
  
  <p>In my <code>rx.selectedSegmentIndex</code> i would like to bind to these but depending on the index of the <code>selectedSegmentIndex</code>, what is the best way to do this with RxSwift?</p>
  
  <p>I also want to an animation regardless of which index is selected.</p>
  
  <p>Thanks in advance</p>