---
title: "displayLink(target:selector:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/displaylink(target:selector:)"
---

# displayLink(target:selector:)

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

## Declaration

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

## Discussion

Discussion If the view is hidden, or not on any display, the callback will not be invoked.
