RxDrawerView 1.0.1

RxDrawerView 1.0.1

Maintained by Mikko Välimäki.



 
Depends on:
RxSwift~> 4.0
RxCocoa~> 4.0
DrawerView~> 1.0.2
 

  • By
  • Mikko Välimäki

RxDrawerView

RxDrawerView is an RxSwift wrapper for DrawerView. With RxDrawerView you can use reactive approach to receive the delegate updates.

Installation

CocoaPods

If using CocoaPods add the following to Podfile:

pod "RxDrawerView"

Carthage

If you prefer Carthage, add this to Cartfile:

github "mkko/RxDrawerView"

Example Usages

    drawer.rx.willTransition
        .subscribe(onNext: { e in
            print("willTransition: \(e.fromPosition) ->  \(e.toPosition)")
        })
        .disposed(by: disposeBag)

    drawer.rx.didTransition
        .subscribe(onNext: { position in
            print("didTransition: \(position)")
        })
        .disposed(by: disposeBag)

    drawer.rx.drawerDidMove
        .subscribe(onNext: { offset in
            print("drawerDidMove: \(offset)")
        })
        .disposed(by: disposeBag)

    drawer.rx.willBeginDragging
        .subscribe(onNext: { offset in
            print("willBeginDragging")
        })
        .disposed(by: disposeBag)

    drawer.rx.willEndDragging
        .subscribe(onNext: { offset in
            print("willEndDragging")
        })
        .disposed(by: disposeBag)