# PanePlan.init(from:)

- **Module:** PanePlan
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/TmuxWorkspace/Workspace.swift#L170
- **Page:** https://libtmux.org/reference/swift/paneplan-init(from-)/

```
PanePlan.init(from:)(from: any Decoder)
```

Creates a new instance by decoding from the given decoder.

This initializer throws an error if reading from the decoder fails, or
if the data read is corrupted or otherwise invalid.

- Parameter decoder: The decoder to read data from.
