<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/CapturedRoom/Section",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "s:8RoomPlan08CapturedA0V7SectionV"
  },
  "title" : "CapturedRoom.Section"
}
-->

# CapturedRoom.Section

An object that identifies a particular area in a captured room in relation to common types of room areas in a building.

```
struct Section
```

## Overview

When RoomPlan recognizes a captured room as one of the common kinds of room areas, such as a living room, the framework adds an instance of this structure to the room’s [`sections`](/documentation/RoomPlan/CapturedRoom/sections) array.

The section instance provides:

- A label type for the common area ([`label`](/documentation/RoomPlan/CapturedRoom/Section/label-swift.property)), such as  [`CapturedRoom.Section.Label.livingRoom`](/documentation/RoomPlan/CapturedRoom/Section/Label-swift.enum/livingRoom)
- A center point ([`center`](/documentation/RoomPlan/CapturedRoom/Section/center)), that generally locates the area within the room
- A story ([`story`](/documentation/RoomPlan/CapturedRoom/Section/story)), that identifies a floor number for the area in the building

In a larger room, the framework may identify multiple types of areas, for example, a kitchen and a dining room. In that case, the `sections` array contains both, [`CapturedRoom.Section.Label.kitchen`](/documentation/RoomPlan/CapturedRoom/Section/Label-swift.enum/kitchen) and [`CapturedRoom.Section.Label.diningRoom`](/documentation/RoomPlan/CapturedRoom/Section/Label-swift.enum/diningRoom), and their `center` points distinguish their individual locations within the room.

## Topics

### Creating a section

[`init(from:)`](/documentation/RoomPlan/CapturedRoom/Section/init(from:))

Creates a section by deserializing the given decoder.

### Describing a section

[`label`](/documentation/RoomPlan/CapturedRoom/Section/label-swift.property)

A textual name for the section.

[`CapturedRoom.Section.Label`](/documentation/RoomPlan/CapturedRoom/Section/Label-swift.enum)

Textual names for one part of a larger structure.

### Locating a section

[`story`](/documentation/RoomPlan/CapturedRoom/Section/story)

The story, floor number, or level on which the section resides in a structure.

[`center`](/documentation/RoomPlan/CapturedRoom/Section/center)

The center position of a section.

### Serializing a section

[`encode(to:)`](/documentation/RoomPlan/CapturedRoom/Section/encode(to:))

Serializes a section to the specified encoder.



---

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)