---
title: "addChild(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/addchild(_:)"
---

# addChild(_:)

Adds a node to the end of the receiver’s list of child nodes.

## Declaration

```swift
func addChild(_ node: SKNode)
```

## Parameters

- `node`: The node to add. The node must not already have a parent.

## Mentioned in

Accessing and Modifying the Node Tree

## See Also

### Modifying the Node Tree

- [Accessing and Modifying the Node Tree](spritekit/accessing-and-modifying-the-node-tree.md)
- [insertChild(_:at:)](spritekit/sknode/insertchild(_:at:).md)
- [isEqual(to:)](spritekit/sknode/isequal(to:).md)
- [move(toParent:)](spritekit/sknode/move(toparent:).md)
- [removeFromParent()](spritekit/sknode/removefromparent().md)
- [removeAllChildren()](spritekit/sknode/removeallchildren().md)
- [removeChildren(in:)](spritekit/sknode/removechildren(in:).md)
- [inParentHierarchy(_:)](spritekit/sknode/inparenthierarchy(_:).md)
