 
       let disposable: Disposable = transitions
         .observeOn(MainScheduler.asyncInstance)
-        .spacingSamples(by: 2.0, on: MainScheduler.asyncInstance)
         .subscribe { [weak self] in self?.perform(transition: $0) }
 
       transitionDisposableKey = disposables.insert(disposable)


    return Observable<UIViewController>.create { observer in

      let helloWorld: UIViewController = PlaceholderTextViewController(with: "Hello World!")
      observer.onNext(helloWorld)

      let fooBar: UIViewController = PlaceholderTextViewController(with: "Foo Bar?!")
      observer.onNext(fooBar)

      let quxBaz: UIViewController = PlaceholderTextViewController(with: "Qux Baz...!")
      observer.onNext(quxBaz)

      let restart: UIViewController = PlaceholderActionViewController(withPlaceholderText: "Lorem Ipsum.", buttonText: "Restart") { [unowned self] in
        self.contentProducer = self.testObservable
      }
      observer.onNext(restart)

      observer.onCompleted()
      return CompositeDisposable()

    }.map(Optional.init)


//  Copyright © 2016 Gavan Chan. All rights reserved.

import Foundation
import RxCocoa
import RxSwift
import UIKit
