ReactiveCocoaApply 2.0.0

ReactiveCocoaApply 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Nikita Leonov, SiarheiBarysenka.



Functions for applying operators to signals and singal producers. Code is based on original implementation of |> from RAC3.

Usage

func myOperator(producer: SignalProducer<Void, Error>) -> SignalProducer<Void, Error> {
  return producer.on(started: { 
    print("started")
  })
}

SignalProducer<Void, NoError>
  .never
  .apply(myOperator)
  .start()

Installation

ReactiveCocoaApply is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ReactiveCocoaApply"

License

ReactiveCocoaApply is available under the MIT license. See the LICENSE file for more info.