A reactive wrapper built around rechsteiner/Parchment
To integrate RxParchmentDataSources into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'RxParchment'
Then, run the following command:
$ pod install
To integrate RxParchmentDataSources into your Xcode project using Carthage, specify it in your Cartfile
:
github "Pubbus/RxParchmentDataSources"
Working with RxParchmentDataSources will be very simple:
let items = Observable.of(["Item1","Item2","Item3"])
items.bind(to: pagingViewController.rx.items) { (pagingViewController: PagingViewController<PagingIndexItem>, index: Int, element: String) -> (controller: UIViewController, title: String) in
return (controller: ItemViewController(item: element), title: element)
}.disposed(by: disposeBag)