Swiftpack.co - KyoheiG3/RxDisplayLink as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by KyoheiG3.
KyoheiG3/RxDisplayLink 3.0.0
RxDisplayLink reactive wrapper for CADisplayLink
⭐️ 25
🕓 1 week ago
iOS tvOS
.package(url: "https://github.com/KyoheiG3/RxDisplayLink.git", from: "3.0.0")

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.

GitHub

link
Stars: 25
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics