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

# displayLink(target:selector:)

Creates a display link targeting the display associated with this scene.

## Declaration

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

## Parameters

- `target`: An object that is the target of the display link callback.
- `sel`: A selector on target to call when the display link fires.

## Return Value

Return Value A new display link, or nil only in exceptional cases where the system cannot construct a display link.

## Discussion

Discussion The returned display link is automatically retargeted when the scene moves between displays.
