/DisplayLink

A dead simple same DisplayLink for iOS & macOS

Primary LanguageSwift

DisplayLink

Swift Version iOS Version macOS Version

A DisplayLink for iOS & macOS.

Usage

import DisplayLink
// create it
let displayLink = DisplayLink()
// activate it
displayLink.activate()
// subscribe
import Combine
displayLink.frameSubject.sink(receiveValue: { (frameTimestamp: CFTimeInterval) in
    print(frameTimestamp)
)}

Installation

dependencies: [
    .package(url: "https://github.com/IgorMuzyka/DisplayLink", .upToNextMajor(from: "1.0.0")),
]