<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeNodeGraph/Stage/canAddNode(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V5StageV06canAddC04withSbAC0C10DefinitionV_tF"
  },
  "title" : "canAddNode(with:)"
}
-->

# canAddNode(with:)

Whether a node with the given definition can be used in this stage.

```
func canAddNode(with definition: ComputeNodeGraph.NodeDefinition) -> Bool
```

## Discussion

Use as a preflight check — for example, to enable a “drop here” target
in a node-graph editor, or to filter a library down to definitions
valid for a particular stage.

---

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)