<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/RoomCaptureView/init(coder:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "c:@M@RoomPlan@objc(cs)RoomCaptureView(im)initWithCoder:"
  },
  "title" : "init(coder:)"
}
-->

# init(coder:)

Creates a view by deserializing from the specified coder.

```
@MainActor @preconcurrency required dynamic init?(coder: NSCoder)
```

## Parameters

`coder`

An object from which the view deserializes.

## Overview

This property inherits from <doc://com.apple.documentation/documentation/UIKit/UIView>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)