Contents

displayLink(target:selector:)

Returns a new display link whose callback will be invoked in-sync with the display the screen is on.

Declaration

func displayLink(target: Any, selector: Selector) -> CADisplayLink

Discussion

Note that views and windows can move between screens and you may want to get a display link directly from NSView or NSWindow which will track those changes automatically.