Skip to content

IgorMuzyka/DisplayLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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