<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/DocumentObservation/Container",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision19DocumentObservationV9ContainerV"
  },
  "title" : "DocumentObservation.Container"
}
-->

# DocumentObservation.Container

A region of content recognized in a document.

```
struct Container
```

## Topics

### Getting the sections in a document

[`struct List`](/documentation/Vision/DocumentObservation/Container/List)

A structure that represents a list of items within a document.

[`struct Table`](/documentation/Vision/DocumentObservation/Container/Table)

A structure that represents a table within a document.

[`struct Text`](/documentation/Vision/DocumentObservation/Container/Text-swift.struct)

A structure that represents a region of text in a document.

### Accessing specific content within a document

[`struct DataDetectorMatch`](/documentation/Vision/DocumentObservation/Container/DataDetectorMatch)

Detected content in the document matched to a specific type of data, such as emails, phone
numbers, addresses, and so on.

[`var barcodes: [BarcodeObservation]`](/documentation/Vision/DocumentObservation/Container/barcodes)

The machine-readable codes found within the container.

[`var lists: [DocumentObservation.Container.List]`](/documentation/Vision/DocumentObservation/Container/lists)

The lists found within the container.

[`var paragraphs: [DocumentObservation.Container.Text]`](/documentation/Vision/DocumentObservation/Container/paragraphs)

The document’s extracted text, grouped into paragraphs within the container.

[`var tables: [DocumentObservation.Container.Table]`](/documentation/Vision/DocumentObservation/Container/tables)

The tables found within the container.

[`var text: DocumentObservation.Container.Text`](/documentation/Vision/DocumentObservation/Container/text-swift.property)

All the text found within the container.

[`var title: DocumentObservation.Container.Text?`](/documentation/Vision/DocumentObservation/Container/title)

The title found within the container.

## Relationships

### Conforms To

[`BoundingRegionProviding`](/documentation/Vision/BoundingRegionProviding)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)