One Logo Pool Ball
Vision · IOS API REFERENCE

DocumentObservation.Container

struct · iOS 26.0+ · SDK 27.1

struct Container

A region of content recognized in a document.

Members (7)

get · iOS 26.0+

paragraphs

TypeScript
get paragraphs(): Array<DocumentObservation_Container_Text>
Swift declaration
var paragraphs: [DocumentObservation.Container.Text] { get }

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

get · iOS 26.0+

boundingRegion

TypeScript
get boundingRegion(): ContoursObservation_Contour
Swift declaration
var boundingRegion: NormalizedRegion { get }
get · iOS 26.0+

text

TypeScript
get text(): DocumentObservation_Container_Text
Swift declaration
var text: DocumentObservation.Container.Text { get }

All the text found within the container.

get · iOS 26.0+

lists

TypeScript
get lists(): Array<DocumentObservation_Container_List>
Swift declaration
var lists: [DocumentObservation.Container.List] { get }

The lists found within the container.

get · iOS 26.0+

title

TypeScript
get title(): (DocumentObservation_Container_Text) | null
Swift declaration
var title: DocumentObservation.Container.Text? { get }

The title found within the container.

get · iOS 26.0+

tables

TypeScript
get tables(): Array<DocumentObservation_Container_Table>
Swift declaration
var tables: [DocumentObservation.Container.Table] { get }

The tables found within the container.

get · iOS 26.0+

barcodes

TypeScript
get barcodes(): Array<BarcodeObservation>
Swift declaration
var barcodes: [BarcodeObservation] { get }

The machine-readable codes found within the container. Vision recognizes 20 different barcode types; to see the specific codes you can use ``RecognizeDocumentsRequest/supportedBarcodeSymbologies``. To see this value, set ``RecognizeDocumentsRequest/BarcodeDetectionOptions/enabled`` within ``RecognizeDocumentsRequest/BarcodeDetectionOptions`` to `true`.

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →