A reactive wrapper built around Yalantis/Koloda
- Creating a pod spec. Not too long.
To integrate RxParchmentDataSources into your Xcode project using Carthage, specify it in your Cartfile:
github "Pubbus/RxKoloda"
Working with RxKoloda datasource will be very simple:
let items = Observable.of([UIImage(named: "A"), UIImage(named: "B"), UIImage(named: "C")])
items.bind(to: kolodaView.rx.items) { (kolodaView: KolodaView, index: Int, image: UIImage?)
-> (view: UIView, overlay: OverlayView) in
return (view: UIImageView(image: image), overlay: OverlayView())
}.disposed(by: disposeBag)