# Server.resize(_:width:height:)

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

```
Server.resize(_:width:height:)(pane: Pane, width: Int?, height: Int?) -> ()
```

Sets a pane's size outright.

Passing neither dimension does nothing rather than sending tmux a
command with nothing to do.

## Raises

- `TmuxError`
