---
title: "encode(with:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcaptureview/encode(with:)"
---

# encode(with:)

Serializes the view to the specified coder.

## Declaration

```swift
@MainActor @preconcurrency override dynamic func encode(with coder: NSCoder)
```

## Parameters

- `coder`: An object that the view serializes to.

## Overview

Overview This property inherits from UIView.

## See Also

### Accessing view features

- [subviews](roomplan/roomcaptureview/subviews.md)
- [layoutSubviews()](roomplan/roomcaptureview/layoutsubviews().md)
- [traitCollectionDidChange(_:)](roomplan/roomcaptureview/traitcollectiondidchange(_:).md)
