<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindowScene/displayLink(target:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWindowScene(im)displayLinkWithTarget:selector:"
  },
  "title" : "displayLink(target:selector:)"
}
-->

# displayLink(target:selector:)

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

```
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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)