---
title: "tabletopGame(_:parent:automaticUpdate:interaction:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/tabletopgame(_:parent:automaticupdate:interaction:)"
---

# tabletopGame(_:parent:automaticUpdate:interaction:)

Supplies a closure which returns a new interaction whenever needed.

## Declaration

```swift
@MainActor @preconcurrency func tabletopGame(_ game: TabletopGame, parent: Entity, automaticUpdate: Bool = true, interaction make: @escaping (TabletopInteraction.Value) -> any TabletopInteraction.Delegate) -> some View

```

## See Also

### Creating a tabletop game

- [tabletopGame(_:parent:automaticUpdate:)](swiftui/view/tabletopgame(_:parent:automaticupdate:).md)
