<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAMetalDisplayLink/remove(from:forMode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAMetalDisplayLink(im)removeFromRunLoop:forMode:"
  },
  "title" : "remove(from:forMode:)"
}
-->

# remove(from:forMode:)

Removes a mode’s display link from a run loop.

```
func remove(from runloop: RunLoop, forMode mode: RunLoop.Mode)
```

## Parameters

`runloop`

A run loop the method disassociates the display link from for `mode`.

`mode`

A run loop mode the method disassociates the display link for `runloop`.

## Discussion

The run loop releases the display link if it no longer associates with any run modes.

---

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)