<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIUpdateLink/init(windowScene:actionTarget:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIUpdateLink(cm)updateLinkForWindowScene:actionTarget:selector:"
  },
  "title" : "init(windowScene:actionTarget:selector:)"
}
-->

# init(windowScene:actionTarget:selector:)

Creates a UI update link for the specified window using the specified target and action.

```
init(windowScene: UIWindowScene, actionTarget target: Any, selector: Selector)
```

## Discussion

This initializer adds the action to the [`beforeCADisplayLinkDispatch`](/documentation/UIKit/UIUpdateActionPhase/beforeCADisplayLinkDispatch) phase. To specify a different phase, use [`addAction(to:handler:)`](/documentation/UIKit/UIUpdateLink/addAction(to:handler:)) or [`addAction(to:target:selector:)`](/documentation/UIKit/UIUpdateLink/addAction(to:target:selector:)) instead.

---

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)