# Server.validateLayouts(_:)

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/6b51d1408b55b8583825c6595405d08e728674bf/Sources/LibTmux/Layout.swift#L14
- **Page:** https://libtmux.org/en/swift/latest/reference/server-validatelayouts(_-)/

```
validateLayouts(_:)(
    layouts: [(layout: String, paneCount: Int)]
) -> ()
```

Checks layouts and their required pane counts before changing tmux.

Custom layouts require a valid checksum, nonempty tree and enough pane
cells. Geometry and pruning remain tmux's responsibility. Empty batches
perform no I/O unless cancelled; each supplied layout must be nonempty.

Unique named abbreviations follow the running daemon. Only an endpoint
with no daemon uses the configured executable's version. A release
below the supported floor, like transport and cancellation failures,
is thrown.

## Parameters

- `layouts` (`[(layout: String, paneCount: Int)]`)

## Raises

- [`TmuxError`](/en/swift/latest/reference/tmuxerror/)
