RxDisplayLink 3.0.0

RxDisplayLink 3.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2022
SPMSupports SPM

Maintained by Kyohei Ito.



  • By
  • Kyohei Ito

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.