---
title: "init(from:)"
framework: roomplan
role: symbol
role_heading: Initializer
path: "roomplan/capturedroom/surface/init(from:)"
---

# init(from:)

Creates a surface by deserializing the specified decoder.

## Declaration

```swift
init(from decoder: any Decoder) throws
```

## Parameters

- `decoder`: An encoded surface structure.
