---
title: "reparent(id:to:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/equipmentcollection/reparent(id:to:)"
---

# reparent(id:to:)

Change the parent of the equipment matching the given identifier. The given equipment becomes the last of the parent’s children.

## Declaration

```swift
func reparent(id: EquipmentIdentifier, to parent: EquipmentIdentifier)
```

## Parameters

- `id`: The identifier of the equipment to reparent.
- `parent`: The identifier of the new parent.

## See Also

### Changing the parent

- [reparent(ids:to:)](tabletopkit/equipmentcollection/reparent(ids:to:).md)
