<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/Equipment/layoutChildren(for:visualState:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit9EquipmentP14layoutChildren3for11visualStateAA0C6Layout_pAA13TableSnapshotV_AA0j6VisualH0VtF"
  },
  "title" : "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.

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

---

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)