Latest 0.1.0
Homepage https://github.com/KyoheiG3/RxDisplayLink
License MIT
Platforms ios 8.0, tvos 9.0, requires ARC
Dependencies RxSwift
Frameworks Foundation
Authors

Carthage compatible
Version
License
Platform

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)

How to Install RxDisplayLink

CocoaPods

Add the following to your Podfile:

pod "RxDisplayLink"
use_frameworks!

Note: the use_frameworks! is required for pods made in Swift.

Carthage

Add the following to your Cartfile:

github "KyoheiG3/RxDisplayLink"

LICENSE

Under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "RxDisplayLink",
    "version": "0.1.0",
    "summary": "RxDisplayLink reactive wrapper for CADisplayLink",
    "homepage": "https://github.com/KyoheiG3/RxDisplayLink",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kyohei Ito": "[email protected]"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/KyoheiG3/RxDisplayLink.git",
        "tag": "0.1.0"
    },
    "source_files": "RxDisplayLink/**/*.{h,swift}",
    "requires_arc": true,
    "frameworks": "Foundation",
    "dependencies": {
        "RxSwift": [
            "~> 3.4.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This