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

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Mutations.swift#L82
- **Page:** https://libtmux.org/en/swift/latest/reference/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`
