Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 956 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 956 Bytes

RxParchmentDataSources

A reactive wrapper built around rechsteiner/Parchment

Installation

CocoaPods

To integrate RxParchmentDataSources into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'RxParchment'

Then, run the following command:

$ pod install

Carthage

To integrate RxParchmentDataSources into your Xcode project using Carthage, specify it in your Cartfile:

github "Pubbus/RxParchmentDataSources"

Usage

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)