A DisplayLink
for iOS & macOS.
import DisplayLink
// create it
let displayLink = DisplayLink()
// activate it
displayLink.activate()
// subscribe
import Combine
displayLink.frameSubject.sink(receiveValue: { (frameTimestamp: CFTimeInterval) in
print(frameTimestamp)
)}
dependencies: [
.package(url: "https://github.com/IgorMuzyka/DisplayLink", .upToNextMajor(from: "1.0.0")),
]