RxDisplayLink

RxDisplayLink reactive wrapper for CADisplayLink


Keywords
rxswift
License
MIT
Install
pod try RxDisplayLink

Documentation

Carthage compatible Version License Platform

RxDisplayLink

Usage

It's very simple.

CADisplayLink.rx.link()
    .subscribe(onNext: { _ in
        // Your freedom
    })
    .disposed(by: disposeBag)

Of course, you can set RunLoop, Mode and FPS. 👌

CADisplayLink.rx.link(to: .current, forMode: .defaultRunLoopMode, fps: 30)
// OR
RxDisplayLink(to: .current, forMode: .defaultRunLoopMode, fps: 30)

Requirements

  • Swift 4.2

How to Install RxDisplayLink

CocoaPods

Add the following to your Podfile:

pod "RxDisplayLink"
use_frameworks!

Carthage

Add the following to your Cartfile:

github "KyoheiG3/RxDisplayLink"

Author

Kyohei Ito

Follow me 🎉

LICENSE

Under the MIT license. See LICENSE file for details.