Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 728 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 728 Bytes

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")),
]