---
title: "layoutChildren(for:visualState:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/equipment/layoutchildren(for:visualstate:)"
---

# layoutChildren(for:visualState:)

This function provides the layout of the direct children of this equipment and is called whenever the snapshot changes. Override it to provide a custom layout. The output of this function is considered to be only a function of its inputs. Reaching out to data outside what is provided might result in undefined behavior.

## Declaration

```swift
func layoutChildren(for snapshot: TableSnapshot, visualState: TableVisualState) -> any EquipmentLayout
```

## See Also

### Displaying the equipment

- [restingOrientation(state:)](tabletopkit/equipment/restingorientation(state:).md)
