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
⭐️ 29
🕓 1 year 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: 29
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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