---
title: "displayLink(withTarget:selector:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiscreen/displaylink(withtarget:selector:)"
---

# displayLink(withTarget:selector:)

Returns a display link object for the current screen.

## Declaration

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

## Parameters

- `target`: An object to be notified when the screen should be updated.
- `sel`: The method of target to call. This selector must have the following signature: - (void)selector:(CADisplayLink *)sender;

## Return Value

Return Value A newly constructed display link object.

## Discussion

Discussion You use display link objects to synchronize your drawing code to the screen’s refresh rate. The newly constructed display link retains the target.

## See Also

### Getting a display link

- [maximumFramesPerSecond](uikit/uiscreen/maximumframespersecond.md)
