# Server.resize(_:by:toward:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Mutations.swift#L79
- **Page:** https://libtmux.org/reference/swift/server-resize(_-by-toward-)/

```
Server.resize(_:by:toward:)(pane: Pane, by: Int, toward: ResizeDirection) -> ()
```

Nudges a pane's boundary, leaving the rest of the layout to absorb it.

The counterpart to setting a size outright: this is how you say "a
little more room" without first reading what the pane has and doing the
arithmetic. Which pane grows depends on the direction — see
``ResizeDirection``.

## Raises

- `TmuxError`
